瀏覽代碼

Merge pull request #7277 from JohanAR/light_specular

Max Hilbrunner 2 年之前
父節點
當前提交
d354e429be
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      tutorials/shaders/shader_reference/spatial_shader.rst

+ 5 - 1
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -443,7 +443,11 @@ 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 **SPECULAR_AMOUNT**      | 2.0 * ``light_specular`` property for              |
+|                                   | ``OmniLight3D`` and ``SpotLight3D``.               |
+|                                   | 1.0 for ``DirectionalLight3D``.                    |
++-----------------------------------+----------------------------------------------------+
+| in bool **LIGHT_IS_DIRECTIONAL**  | ``true`` if this pass is a ``DirectionalLight3D``. |
 +-----------------------------------+----------------------------------------------------+
 | in float **ATTENUATION**          | Attenuation based on distance or shadow.           |
 +-----------------------------------+----------------------------------------------------+