This is my visual shader:
When the constant 0.6 scalar is connected to the subtract operator, the shader behaves as intended:
But when the ScalarUniform is connected to the same operator, it looks like the shader is subtracting from the other objects:
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.
Can someone see what I'm doing wrong? TIA :)