Преглед на файлове

Merge pull request #2777 from azagaya/patch-1

Fix LIGHT_VEC description, and add SHADOW_VEC.
Rémi Verschelde преди 6 години
родител
ревизия
4680a8570b
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      tutorials/shading/shading_reference/canvas_item_shader.rst

+ 5 - 1
tutorials/shading/shading_reference/canvas_item_shader.rst

@@ -218,7 +218,11 @@ When the shader is on a light pass, the ``AT_LIGHT_PASS`` variable will be ``tru
 +-------------------------------------+-------------------------------------------------------------------------------+
 | in float **TIME**                   | Global time in seconds.                                                       |
 +-------------------------------------+-------------------------------------------------------------------------------+
-| inout vec2 **LIGHT_VEC**            | Vector from light to fragment, can be modified to alter shadow computation.   |
+| inout vec2 **LIGHT_VEC**            | Vector from light to fragment in local coordinates. It can be modified to     |
+|                                     | alter illumination direction when normal maps are used.                       |
++-------------------------------------+-------------------------------------------------------------------------------+
+| inout vec2 **SHADOW_VEC**           | Vector from light to fragment in local coordinates. It can be modified to     |
+|                                     | alter shadow computation.                                                     |
 +-------------------------------------+-------------------------------------------------------------------------------+
 | inout float **LIGHT_HEIGHT**        | Height of Light. Only effective when normals are used.                        |
 +-------------------------------------+-------------------------------------------------------------------------------+