Skip to content

Commit 930ad1f

Browse files
authored
Add LIGHT_IS_DIRECTIONAL built-in for spatial shaders (godotengine#7194)
1 parent 872e5ff commit 930ad1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_
443443
+-----------------------------------+----------------------------------------------------+
444444
| in vec3 **LIGHT_COLOR** | Color of light multiplied by energy. |
445445
+-----------------------------------+----------------------------------------------------+
446+
| in vec3 **LIGHT_IS_DIRECTIONAL** | ``true`` if this pass is a ``DirectionalLight3D``. |
447+
+-----------------------------------+----------------------------------------------------+
446448
| in float **ATTENUATION** | Attenuation based on distance or shadow. |
447449
+-----------------------------------+----------------------------------------------------+
448450
| in vec3 **ALBEDO** | Base albedo. |

0 commit comments

Comments
 (0)