mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Merge pull request #6072 from Chaosus/shader_uniforms
This commit is contained in:
@@ -727,7 +727,9 @@ GDScript:
|
||||
|
||||
::
|
||||
|
||||
material.set_shader_param("some_value", some_value)
|
||||
material.set_shader_uniform("some_value", some_value)
|
||||
|
||||
material.set_shader_uniform("colors", [Vector3(1, 0, 0), Vector3(0, 1, 0), Vector3(0, 0, 1)])
|
||||
|
||||
.. note:: The first argument to ``set_shader_param`` is the name of the uniform
|
||||
in the shader. It must match *exactly* to the name of the uniform in
|
||||
|
||||
Reference in New Issue
Block a user