Add reference to build-in variables in Shader Language overview (#5084)

* Add reference to build-in variables in Shader Language overview
This commit is contained in:
Oskar van Velden
2021-07-12 12:40:19 +02:00
committed by GitHub
parent ae92a763fd
commit 1bf43b56a6

View File

@@ -748,6 +748,16 @@ Uniforms can also be assigned default values:
uniform vec4 some_vector = vec4(0.0);
uniform vec4 some_color : hint_color = vec4(1.0);
Built-in variables
------------------
A large number of built-in variables are available, like ``UV``, ``COLOR`` and ``VERTEX``. What variables are available depends on the type of shader (``spatial``, ``canvas_item`` or ``particle``) and the function used (``vertex``, ``fragment`` or ``light``).
For a list of the build-in variables that are available, please see the corresponding pages:
- :ref:`Spatial shaders <doc_spatial_shader>`
- :ref:`Canvas item shaders <doc_canvas_item_shader>`
- :ref:`Particle shaders <doc_particle_shader>`
Built-in functions
------------------