Bladeren bron

Merge pull request #2777 from azagaya/patch-1

Fix LIGHT_VEC description, and add SHADOW_VEC.
Rémi Verschelde 6 jaren geleden
bovenliggende
commit
4680a8570b
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  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.                        |
 +-------------------------------------+-------------------------------------------------------------------------------+