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 :)

asked Jun 7 in Engine by schnappischnap (14 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 How to use this Q&A? before posting your first questions.