Browse Source

Merge pull request #8938 from clayjohn/MAIN_CAM_INV_VIEW_MATRIX

Add description for MAIN_CAM_INV_VIEW_MATRIX to spatial shader doc page
Max Hilbrunner 1 year ago
parent
commit
d293c2ba49
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

@@ -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.                             |