Skip to content

Commit 1f3f367

Browse files
committed
Add CLIP_SPACE_FAR built-in description to spatial shaders
1 parent bcfaaaa commit 1f3f367

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,29 @@ Global built-ins
9696

9797
Global built-ins are available everywhere, including custom functions.
9898

99-
+-------------------+-----------------------------------------------------------------------------------------+
100-
| Built-in | Description |
101-
+===================+=========================================================================================+
102-
| in float **TIME** | Global time since the engine has started, in seconds. It repeats after every ``3,600`` |
103-
| | seconds (which can be changed with the |
104-
| | :ref:`rollover<class_ProjectSettings_property_rendering/limits/time/time_rollover_secs>`|
105-
| | setting). It's not affected by :ref:`time_scale<class_Engine_property_time_scale>` or |
106-
| | pausing. If you need a ``TIME`` variable that can be scaled or paused, add your own |
107-
| | :ref:`global shader uniform<doc_shading_language_global_uniforms>` and update it each |
108-
| | frame. |
109-
+-------------------+-----------------------------------------------------------------------------------------+
110-
| in float **PI** | A ``PI`` constant (``3.141592``). |
111-
| | A ratio of a circle's circumference to its diameter and amount of radians in half turn. |
112-
+-------------------+-----------------------------------------------------------------------------------------+
113-
| in float **TAU** | A ``TAU`` constant (``6.283185``). |
114-
| | An equivalent of ``PI * 2`` and amount of radians in full turn. |
115-
+-------------------+-----------------------------------------------------------------------------------------+
116-
| in float **E** | An ``E`` constant (``2.718281``). Euler's number and a base of the natural logarithm. |
117-
+-------------------+-----------------------------------------------------------------------------------------+
99+
+----------------------------+-----------------------------------------------------------------------------------------+
100+
| Built-in | Description |
101+
+============================+=========================================================================================+
102+
| in float **TIME** | Global time since the engine has started, in seconds. It repeats after every ``3,600`` |
103+
| | seconds (which can be changed with the |
104+
| | :ref:`rollover<class_ProjectSettings_property_rendering/limits/time/time_rollover_secs>`|
105+
| | setting). It's not affected by :ref:`time_scale<class_Engine_property_time_scale>` or |
106+
| | pausing. If you need a ``TIME`` variable that can be scaled or paused, add your own |
107+
| | :ref:`global shader uniform<doc_shading_language_global_uniforms>` and update it each |
108+
| | frame. |
109+
+----------------------------+-----------------------------------------------------------------------------------------+
110+
| in float **PI** | A ``PI`` constant (``3.141592``). |
111+
| | A ratio of a circle's circumference to its diameter and amount of radians in half turn. |
112+
+----------------------------+-----------------------------------------------------------------------------------------+
113+
| in float **TAU** | A ``TAU`` constant (``6.283185``). |
114+
| | An equivalent of ``PI * 2`` and amount of radians in full turn. |
115+
+----------------------------+-----------------------------------------------------------------------------------------+
116+
| in float **E** | An ``E`` constant (``2.718281``). Euler's number and a base of the natural logarithm. |
117+
+----------------------------+-----------------------------------------------------------------------------------------+
118+
| in bool **OUTPUT_IS_SRGB** | ``true`` when output is in sRGB color space. |
119+
| | This is ``true`` in the Compatibility renderer, |
120+
| | ``false`` in Forward+ and Forward Mobile. |
121+
+----------------------------+-----------------------------------------------------------------------------------------+
118122

119123
Vertex built-ins
120124
^^^^^^^^^^^^^^^^
@@ -484,10 +488,6 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_
484488
+-----------------------------------+------------------------------------------------------------------------+
485489
| in float **ROUGHNESS** | Roughness. |
486490
+-----------------------------------+------------------------------------------------------------------------+
487-
| in bool **OUTPUT_IS_SRGB** | ``true`` when output is in sRGB color space. |
488-
| | This is ``true`` in the Compatibility renderer, |
489-
| | ``false`` in Forward+ and Forward Mobile. |
490-
+-----------------------------------+------------------------------------------------------------------------+
491491
| out vec3 **DIFFUSE_LIGHT** | Diffuse light result. |
492492
+-----------------------------------+------------------------------------------------------------------------+
493493
| out vec3 **SPECULAR_LIGHT** | Specular light result. |

0 commit comments

Comments
 (0)