|
@@ -50,24 +50,26 @@ Global built-ins
|
|
|
|
|
|
Global built-ins are available everywhere, including custom functions.
|
|
|
|
|
|
-+-------------------+----------------------------------------------------------------------------------------+
|
|
|
-| Built-in | Description |
|
|
|
-+===================+========================================================================================+
|
|
|
-| in float **TIME** | Global time since the engine has started, in seconds (always positive). |
|
|
|
-| | It's subject to the rollover setting (which is 3,600 seconds by default). |
|
|
|
-| | It's not affected by :ref:`time_scale<class_Engine_property_time_scale>` |
|
|
|
-| | or pausing, but you can define a global shader uniform to add a "scaled" |
|
|
|
-| | ``TIME`` variable if desired. |
|
|
|
-+-------------------+----------------------------------------------------------------------------------------+
|
|
|
-| in float **PI** | A ``PI`` constant (``3.141592``). |
|
|
|
-| | A ration of circle's circumference to its diameter and amount of radians in half turn. |
|
|
|
-+-------------------+----------------------------------------------------------------------------------------+
|
|
|
-| in float **TAU** | A ``TAU`` constant (``6.283185``). |
|
|
|
-| | An equivalent of ``PI * 2`` and amount of radians in full turn. |
|
|
|
-+-------------------+----------------------------------------------------------------------------------------+
|
|
|
-| in float **E** | An ``E`` constant (``2.718281``). |
|
|
|
-| | Euler's number and a base of the natural logarithm. |
|
|
|
-+-------------------+----------------------------------------------------------------------------------------+
|
|
|
++-------------------+-----------------------------------------------------------------------------------------+
|
|
|
+| Built-in | Description |
|
|
|
++===================+=========================================================================================+
|
|
|
+| in float **TIME** | Global time since the engine has started, in seconds. It repeats after every 3,600 |
|
|
|
+| | seconds (which can be changed with the |
|
|
|
+| | :ref:`rollover<class_ProjectSettings_property_rendering/limits/time/time_rollover_secs>`|
|
|
|
+| | setting). It's not affected by :ref:`time_scale<class_Engine_property_time_scale>` or |
|
|
|
+| | pausing. If you need a ``TIME`` variable that can be scaled or paused, add your own |
|
|
|
+| | :ref:`global shader uniform<doc_shading_language_global_uniforms>` and update it each |
|
|
|
+| | frame. |
|
|
|
++-------------------+-----------------------------------------------------------------------------------------+
|
|
|
+| in float **PI** | A ``PI`` constant (``3.141592``). |
|
|
|
+| | A ration of circle's circumference to its diameter and amount of radians in half turn. |
|
|
|
++-------------------+-----------------------------------------------------------------------------------------+
|
|
|
+| in float **TAU** | A ``TAU`` constant (``6.283185``). |
|
|
|
+| | An equivalent of ``PI * 2`` and amount of radians in full turn. |
|
|
|
++-------------------+-----------------------------------------------------------------------------------------+
|
|
|
+| in float **E** | An ``E`` constant (``2.718281``). |
|
|
|
+| | Euler's number and a base of the natural logarithm. |
|
|
|
++-------------------+-----------------------------------------------------------------------------------------+
|
|
|
|
|
|
Vertex built-ins
|
|
|
^^^^^^^^^^^^^^^^
|