Skip to content

Commit bf22dfe

Browse files
committed
Add CLIP_SPACE_FAR built-in description to spatial shaders
1 parent 6f84ac3 commit bf22dfe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ shader, this value can be used as desired.
185185
| | (this is ``true`` in the Compatibility renderer, |
186186
| | ``false`` in Forward+ and Forward Mobile). |
187187
+----------------------------------------+--------------------------------------------------------+
188+
| in bool **CLIP_SPACE_FAR** | End of a clip space range. |
189+
| | When using a Vulkan renderer, it's ``0``. |
190+
| | On compatibility renderer, it's ``-1``. |
191+
+----------------------------------------+--------------------------------------------------------+
188192
| in int **INSTANCE_ID** | Instance ID for instancing. |
189193
+----------------------------------------+--------------------------------------------------------+
190194
| in vec4 **INSTANCE_CUSTOM** | Instance custom data (for particles, mostly). |
@@ -288,6 +292,10 @@ these properties, and if you don't write to them, Godot will optimize away the c
288292
| in bool **OUTPUT_IS_SRGB** | ``true`` when output is in sRGB color space (this is ``true`` in the Compatibility renderer, |
289293
| | ``false`` in Forward+ and Forward Mobile). |
290294
+----------------------------------------+--------------------------------------------------------------------------------------------------+
295+
| in bool **CLIP_SPACE_FAR** | End of a clip space range. |
296+
| | When using a Vulkan renderer, it's ``0``. |
297+
| | On compatibility renderer, it's ``-1``. |
298+
+----------------------------------------+--------------------------------------------------------------------------------------------------+
291299
| in mat4 **MODEL_MATRIX** | Model/local space to world space transform. |
292300
+----------------------------------------+--------------------------------------------------------------------------------------------------+
293301
| in mat3 **MODEL_NORMAL_MATRIX** | |
@@ -488,6 +496,10 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_
488496
| | This is ``true`` in the Compatibility renderer, |
489497
| | ``false`` in Forward+ and Forward Mobile. |
490498
+-----------------------------------+------------------------------------------------------------------------+
499+
| in bool **CLIP_SPACE_FAR** | End of a clip space range. |
500+
| | When using a Vulkan renderer, it's ``0``. |
501+
| | On compatibility renderer, it's ``-1``. |
502+
+-----------------------------------+------------------------------------------------------------------------+
491503
| out vec3 **DIFFUSE_LIGHT** | Diffuse light result. |
492504
+-----------------------------------+------------------------------------------------------------------------+
493505
| out vec3 **SPECULAR_LIGHT** | Specular light result. |

0 commit comments

Comments
 (0)