Browse Source

Add documentation for new LIGHT_VERTEX shader builtin

clayjohn 1 year ago
parent
commit
34a89bb461
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tutorials/shaders/shader_reference/spatial_shader.rst

+ 3 - 0
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -293,6 +293,9 @@ these properties, and if you don't write to them, Godot will optimize away the c
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | in vec3 **VERTEX**                     | Vertex that comes from vertex function (default, in view space).                                 |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
+| inout vec3 **LIGHT_VERTEX**            | A writable version of ``VERTEX`` that can be used to alter light and shadows. Writing to this    |
+|                                        | will not change the position of the fragment.                                                    |
++----------------------------------------+--------------------------------------------------------------------------------------------------+
 | in int **VIEW_INDEX**                  | The view that we are rendering.                                                                  |
 |                                        | ``VIEW_MONO_LEFT`` (``0``) for Mono (not multiview) or                                           |
 |                                        | left eye, ``VIEW_RIGHT`` (``1``) for right eye.                                                  |