Skip to content

Commit d354e42

Browse files
authored
Merge pull request #7277 from JohanAR/light_specular
2 parents 20f57e5 + d3f0ec6 commit d354e42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,11 @@ 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``. |
446+
| in float **SPECULAR_AMOUNT** | 2.0 * ``light_specular`` property for |
447+
| | ``OmniLight3D`` and ``SpotLight3D``. |
448+
| | 1.0 for ``DirectionalLight3D``. |
449+
+-----------------------------------+----------------------------------------------------+
450+
| in bool **LIGHT_IS_DIRECTIONAL** | ``true`` if this pass is a ``DirectionalLight3D``. |
447451
+-----------------------------------+----------------------------------------------------+
448452
| in float **ATTENUATION** | Attenuation based on distance or shadow. |
449453
+-----------------------------------+----------------------------------------------------+

0 commit comments

Comments
 (0)