Documentation / Node reference / code nodes
code/LightingModelSSS
Shades light shining through a surface, as in wax or skin.
Lights
Outputs the light that shines through a surface from the scene's lights behind it, as in wax, skin or leaves. It gives only that glow: add it to the surface's own shading.
Parameters
| Name | Type | What it does |
|---|---|---|
| color | Color | Colour of the light shining through. |
| thickness | Float | 0 lets all the light through, 1 none. |
| power | Float | Higher focuses the glow around the light's direction. |
| scale | Float | Brightness of the glow. |
| distortion | Float | How much the normal bends the light passing through. |
| ambient | Float | Glow added whatever the viewing angle. |
| attenuation | Float | Multiplies the whole glow. |
| worldPos | Vector3 | Position to shade. Unwired, the point being shaded. |
| normal | Vector3 | Surface normal. Unwired, the shaded point's normal. |
| viewDir | Vector3 | Direction toward the viewer. Unwired, from the camera. |
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.