Browse Source

Update Shading language to refer to `set_shader_parameter()` (#6515)

J.M. de Jong 2 years ago
parent
commit
7fe43cfc8e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tutorials/shaders/shader_reference/shading_language.rst

+ 3 - 3
tutorials/shaders/shader_reference/shading_language.rst

@@ -729,11 +729,11 @@ GDScript:
 
 
 ::
 ::
 
 
-  material.set_shader_uniform("some_value", some_value)
+  material.set_shader_parameter("some_value", some_value)
 
 
-  material.set_shader_uniform("colors", [Vector3(1, 0, 0), Vector3(0, 1, 0), Vector3(0, 0, 1)])
+  material.set_shader_parameter("colors", [Vector3(1, 0, 0), Vector3(0, 1, 0), Vector3(0, 0, 1)])
 
 
-.. note:: The first argument to ``set_shader_uniform`` is the name of the uniform
+.. note:: The first argument to ``set_shader_parameter`` is the name of the uniform
           in the shader. It must match *exactly* to the name of the uniform in
           in the shader. It must match *exactly* to the name of the uniform in
           the shader or else it will not be recognized.
           the shader or else it will not be recognized.