godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Cant set shader parameter on custom visual shader

Open TheBricktop opened this issue 3 years ago • 0 comments

After some tweaking ive stumbled into a problem : ive made simple visual shader and gave it a TextureUniform called "Emission" In godot python ive referenced the material with the shader and called

  self.material.set_shader_param( "Emission", self.texture )

but im getting an error :

obraz

also when i do

  print(self.material.get_shader())

it returns None, so im guessing either im making some cryptic mistake or there is a bug that does not allow the shader to be used.

TheBricktop avatar Sep 26 '22 13:09 TheBricktop