Why does my dissolve shader behave differently if I change the ScalarConstant to a ScalarUniform with the same value?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By schnappischnap

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