From 98a6bcb0e0c406b696f5cff96c35eb28f33c3f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Aires=20Rast=C3=A9n?= Date: Thu, 20 Apr 2023 18:54:08 +0200 Subject: [PATCH] Add LIGHT_IS_DIRECTIONAL built-in for spatial shaders --- tutorials/shaders/shader_reference/spatial_shader.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/shaders/shader_reference/spatial_shader.rst b/tutorials/shaders/shader_reference/spatial_shader.rst index 16e7a10cec5..0c399d40428 100644 --- a/tutorials/shaders/shader_reference/spatial_shader.rst +++ b/tutorials/shaders/shader_reference/spatial_shader.rst @@ -443,6 +443,8 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_ +-----------------------------------+----------------------------------------------------+ | in vec3 **LIGHT_COLOR** | Color of light multiplied by energy. | +-----------------------------------+----------------------------------------------------+ +| in vec3 **LIGHT_IS_DIRECTIONAL** | ``true`` if this pass is a ``DirectionalLight3D``. | ++-----------------------------------+----------------------------------------------------+ | in float **ATTENUATION** | Attenuation based on distance or shadow. | +-----------------------------------+----------------------------------------------------+ | in vec3 **ALBEDO** | Base albedo. |