File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tutorials/shaders/shader_reference Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ Most GLSL ES 3.0 datatypes are supported:
102102Comments
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++,
106106using ``// `` 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
10631063Sometimes, you want to modify a parameter on each node using the material. As an
10641064example, in a forest full of trees, when you want each tree to have a slightly
You can’t perform that action at this time.
0 commit comments