Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant set shader parameter on custom visual shader #378

Open
TheBricktop opened this issue Sep 26, 2022 · 0 comments
Open

Cant set shader parameter on custom visual shader #378

TheBricktop opened this issue Sep 26, 2022 · 0 comments

Comments

@TheBricktop
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant