Documentation / Node reference / code nodes
code/LightingModelPBREnvironment
Shades a physically based surface with an environment map.
Lights
Outputs the light an environment map gives a surface: its reflection, blurred by roughness, and its soft diffuse light. The scene's lights are not included.
Parameters
| Name | Type | What it does |
|---|---|---|
| albedo | Color | Surface colour. |
| metallic | Float | 0 for a non-metal, 1 for a metal. |
| roughness | Float | 0 for a mirror, 1 for fully matte. |
| ao | Float | How much ambient light reaches the surface, 0 to 1. |
| envColor | Color | Tints the environment light. |
| envIntensity | Float | Multiplies the environment light. |
| 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.