瀏覽代碼

Changed set_shader_param to set_shader_parameter

DeltaNeverUsed 2 年之前
父節點
當前提交
00b12f5daf
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
 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
 which is called on the node's material resource. With a Sprite2D node, the
 following code can be used to set the ``blue`` uniform.
 following code can be used to set the ``blue`` uniform.
 
 
 ::
 ::
 
 
   var blue_value = 1.0
   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
 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.
 with how it is written in the shader, including spelling and case.