Difference between a Constant and Scalar Parameter

Hey, sorry if this is the wrong place, I can’t seem to find the page for the material editor

I know what the difference is between the two, but does anyone know why they’re outputting different results when they have the same values in this example here? MaterialParametersBroken - YouTube

If you look inside the function, it’s actually taking a vector with alpha for this parameter.

My feeling is, that constant and the parameter are getting converted into a vector in different ways…

Hmm, strange, I thought a radius would’ve only taken in a float… Do you know how to fix it, because I thought a Scalar Parameter was literally just an editable version of the Constant, with no other real differences. I just tried to multiply the value by 1 to see if it would convert the value from a Multiply node properly, but it didn’t work, so it’s something about the Scalar Parameter node specifically that’s not working correctly

I don’t know how to fix it, off the top of my head.

I find it’s best to do whatever works, for the easiest life. If you try and find out why some part of the engine works the way it does, or not, you will never get to where you’re going.

You might find out some interesting things along the way, and could also become an authority, but will never finish your game / project :wink: