Browse Source

Add `CAMERA_VISIBLE_LAYERS` to spatial shader docs (#9244)

xXAdrXx 1 year ago
parent
commit
7c8f2cb5ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tutorials/shaders/shader_reference/spatial_shader.rst

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

@@ -172,6 +172,8 @@ shader, this value can be used as desired.
 +----------------------------------------+--------------------------------------------------------+
 +----------------------------------------+--------------------------------------------------------+
 | in vec3 **CAMERA_DIRECTION_WORLD**     | Camera world space direction.                          |
 | in vec3 **CAMERA_DIRECTION_WORLD**     | Camera world space direction.                          |
 +----------------------------------------+--------------------------------------------------------+
 +----------------------------------------+--------------------------------------------------------+
+| in int **CAMERA_VISIBLE_LAYERS**       | Cull layers of the camera rendering the current pass.  |
++----------------------------------------+--------------------------------------------------------+
 | in bool **OUTPUT_IS_SRGB**             | ``true`` when output is in sRGB color space            |
 | in bool **OUTPUT_IS_SRGB**             | ``true`` when output is in sRGB color space            |
 |                                        | (this is ``true`` in the Compatibility renderer,       |
 |                                        | (this is ``true`` in the Compatibility renderer,       |
 |                                        | ``false`` in Forward+ and Forward Mobile).             |
 |                                        | ``false`` in Forward+ and Forward Mobile).             |