mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
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:
@@ -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
|
||||
------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user