geo/Crystal mat/Gem
Documentation / Node reference / mat nodes
mat/Gem
Creates a gemstone material that refracts light through its facets.
Mesh
Light enters the stone, reflects between its facets and leaves towards the environment. Use it on a closed mesh with flat facets, like a cut stone. It needs an environment map.
Parameters
| Name | Type | What it does |
|---|---|---|
| ior | Float | Index of refraction. 2.42 is diamond. |
| dispersion | Float | Splits light into colours. 0 is off. |
| fire | UInt8 EXIT_ONLY · FULL | How the colours split inside the stone. |
| attenuationColor | Color | Colour light turns inside the stone. |
| attenuationDistance | Float | Distance to reach attenuationColor. 0 absorbs nothing. |
| bounces | UInt32 | Times light may reflect inside the stone. |
| samples | UInt32 | Rays traced per pixel inside the stone. Smoother, but slower. |
| traceScene | Bool | Light leaving the stone shows the scene around it. |
| environmentMode | UInt8 AUTO · GLOBAL · PARAM · NONE | Where the environment map comes from. |
| envMap | NodePath | Environment map, lighting the surface from every direction. |
| envIntensity | Float | Strength of the environment lighting. 0 turns it off. |
| envColor | Color | Tint of the environment lighting. |
Examples
Scenes you can open in the editor that teach this node.
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.