|
@@ -77,6 +77,17 @@ Render modes
|
|
|
| | a camera feed in AR. |
|
|
|
+---------------------------------+-----------------------------------------------------------------------+
|
|
|
|
|
|
+Global built-ins
|
|
|
+^^^^^^^^^^^^^^^^
|
|
|
+
|
|
|
+Global built-ins are available everywhere, including custom functions.
|
|
|
+
|
|
|
++--------------------------------+-------------------------+
|
|
|
+| Built-in | Description |
|
|
|
++================================+=========================+
|
|
|
+| in float **TIME** | Global time, in seconds.|
|
|
|
++--------------------------------+-------------------------+
|
|
|
+
|
|
|
Vertex built-ins
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -124,8 +135,6 @@ shader, this value can be used as desired.
|
|
|
+--------------------------------------+-------------------------------------------------------+
|
|
|
| Built-in | Description |
|
|
|
+======================================+=======================================================+
|
|
|
-| in float **TIME** | Elapsed total time in seconds. |
|
|
|
-+--------------------------------------+-------------------------------------------------------+
|
|
|
| in vec2 **VIEWPORT_SIZE** | Size of viewport (in pixels). |
|
|
|
+--------------------------------------+-------------------------------------------------------+
|
|
|
| inout mat4 **WORLD_MATRIX** | Model space to world space transform. |
|
|
@@ -178,8 +187,6 @@ these properties, and if you don't write to them, Godot will optimize away the c
|
|
|
+-----------------------------------+--------------------------------------------------------------------------------------------------+
|
|
|
| Built-in | Description |
|
|
|
+===================================+==================================================================================================+
|
|
|
-| in float **TIME** | Elapsed total time in seconds. |
|
|
|
-+-----------------------------------+--------------------------------------------------------------------------------------------------+
|
|
|
| in vec2 **VIEWPORT_SIZE** | Size of viewport (in pixels). |
|
|
|
+-----------------------------------+--------------------------------------------------------------------------------------------------+
|
|
|
| in vec4 **FRAGCOORD** | Coordinate of pixel center in screen space. ``xy`` specifies position in window, ``z`` |
|