Can't access my shader parameter from code

Godot Version

4.3 stable

Question

` the shader tutorials on the doc not working take look



so i follow the doc to make my first shader and when i did run the code
the code didn’t change the blue color value

`

do you plan to run that code on editor or runtime?
if you want it to run on editor while you edit your shader, then you will need to use @tool

1 Like

at runtime

ok i know why, it’s “blue” not “Blue”
change it to

self.material.set_shader_parameter("blue", blue_isnot_value)

new error can you help




thanks for help the name was the what break my shader i did make the
B and not b as the name in the shader thanks alot also the other error
i just cope my olde shader and made new one and it fixed thanks :slight_smile: zdrmlpzdrmlp

1 Like