Parcourir la source

Add description for MAIN_CAM_INV_VIEW_MATRIX to spatial shader doc page

clayjohn il y a 1 an
Parent
commit
ba670f53b7
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      tutorials/shaders/shader_reference/spatial_shader.rst

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

@@ -158,6 +158,9 @@ shader, this value can be used as desired.
 +----------------------------------------+--------------------------------------------------------+
 +----------------------------------------+--------------------------------------------------------+
 | in mat4 **INV_VIEW_MATRIX**            | View space to world space transform.                   |
 | in mat4 **INV_VIEW_MATRIX**            | View space to world space transform.                   |
 +----------------------------------------+--------------------------------------------------------+
 +----------------------------------------+--------------------------------------------------------+
+| in mat4 **MAIN_CAM_INV_VIEW_MATRIX**   | View space to world space transform of camera used to  |
+|                                        | draw the current viewport.                             |
++----------------------------------------+--------------------------------------------------------+
 | in mat4 **INV_PROJECTION_MATRIX**      | Clip space to view space transform.                    |
 | in mat4 **INV_PROJECTION_MATRIX**      | Clip space to view space transform.                    |
 +----------------------------------------+--------------------------------------------------------+
 +----------------------------------------+--------------------------------------------------------+
 | in vec3 **NODE_POSITION_WORLD**        | Node world space position.                             |
 | in vec3 **NODE_POSITION_WORLD**        | Node world space position.                             |