Skip to content

Commit 0462f63

Browse files
authored
Merge pull request #11722 from Calinou/spatial-shader-in-shadow-pass
Document `IN_SHADOW_PASS` global built-in in Spatial shader
2 parents 05ed3e5 + 395b228 commit 0462f63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ Global built-ins are available everywhere, including custom functions.
196196
+-----------------------------+-----------------------------------------------------------------------------------------------------+
197197
| in bool **IS_MULTIVIEW** | ``true`` when output is stereoscopic (XR), ``false`` when output is monoscopic. |
198198
+-----------------------------+-----------------------------------------------------------------------------------------------------+
199+
| in bool **IN_SHADOW_PASS** | ``true`` when the shader is being rendered in a shadow mapping pass, ``false`` otherwise. |
200+
| | This can be used to render objects differently in shadow maps compared to their regular rendering. |
201+
+-----------------------------+-----------------------------------------------------------------------------------------------------+
199202

200203
Vertex built-ins
201204
----------------

0 commit comments

Comments
 (0)