0 votes

This is my visual shader:

enter image description here

When the constant 0.6 scalar is connected to the subtract operator, the shader behaves as intended:

enter image description here

But when the ScalarUniform is connected to the same operator, it looks like the shader is subtracting from the other objects:

enter image description here

The object looks fine in the editor, it's only in-game that it behaves strangely. The white flashes as soon as I start the game so I guess it's working for the very first frame. I'm not changing any shader parameters or setting in code.

enter image description here

Can someone see what I'm doing wrong? TIA :)

in Engine by (15 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.