Browse Source

Changed set_shader_param to set_shader_parameter

DeltaNeverUsed 2 years ago
parent
commit
00b12f5daf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tutorials/shaders/your_first_shader/your_first_2d_shader.rst

+ 2 - 2
tutorials/shaders/your_first_shader/your_first_2d_shader.rst

@@ -192,14 +192,14 @@ value you provided in the shader.
 Interacting with shaders from code
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-You can change uniforms from code using the function ``set_shader_param()``
+You can change uniforms from code using the function ``set_shader_parameter()``
 which is called on the node's material resource. With a Sprite2D node, the
 following code can be used to set the ``blue`` uniform.
 
 ::
 
   var blue_value = 1.0
-  material.set_shader_param("blue", blue_value)
+  material.set_shader_parameter("blue", blue_value)
 
 Note that the name of the uniform is a string. The string must match exactly
 with how it is written in the shader, including spelling and case.