Skip to content

Commit 93963ab

Browse files
authored
Document support for 2D per-instance uniforms in Shading language (#10749)
* Document support for 2D per-instance uniforms in Shading language
1 parent fd14417 commit 93963ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/shaders/shader_reference/shading_language.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Most GLSL ES 3.0 datatypes are supported:
102102
Comments
103103
~~~~~~~~
104104

105-
The shading language supports the same comment syntax as used in C# and C++,
105+
The shading language supports the same comment syntax as used in C# and C++,
106106
using ``//`` for single-line comments and ``/* */`` for multi-line comments:
107107

108108
.. code-block:: glsl
@@ -912,7 +912,7 @@ You can access ``int`` values as a readable dropdown widget using the ``hint_enu
912912
You can assign explicit values to the ``hint_enum`` uniform using colon syntax similar to GDScript:
913913

914914
.. code-block::
915-
915+
916916
uniform int character_speed: hint_enum("Slow:30", "Average:60", "Very Fast:200") = 60;
917917
918918
The value will be stored as an integer, corresponding to the index of the selected
@@ -1058,7 +1058,7 @@ Per-instance uniforms
10581058

10591059
.. note::
10601060

1061-
Per-instance uniforms are only available in ``spatial`` (3D) shaders.
1061+
Per-instance uniforms are available in both ``canvas_item`` (2D) and ``spatial`` (3D) shaders.
10621062

10631063
Sometimes, you want to modify a parameter on each node using the material. As an
10641064
example, in a forest full of trees, when you want each tree to have a slightly

0 commit comments

Comments
 (0)