Browse Source

Merge pull request #4303 from Calinou/fix-shader-time-description

Fix shader `TIME` description to match how it actually works
Nathan Lovato 4 years ago
parent
commit
e1ca897bce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/shaders/shader_reference/canvas_item_shader.rst

+ 1 - 1
tutorials/shaders/shader_reference/canvas_item_shader.rst

@@ -51,7 +51,7 @@ Global built-ins are available everywhere, including custom functions.
 +-------------------+-----------------------------------------------------------------------------+
 +-------------------+-----------------------------------------------------------------------------+
 | Built-in          | Description                                                                 |
 | Built-in          | Description                                                                 |
 +===================+=============================================================================+
 +===================+=============================================================================+
-| in float **TIME** | Global time since the shader was compiled, in seconds (always positive).    |
+| 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 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>`    |
 |                   | 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"    |
 |                   | or pausing, but you can define a global shader uniform to add a "scaled"    |