fenolftalein wrote:Ryoma, you can add new variables, if active shader doesn't have uniform with this name, it just ignores variable assignment.
I know, but it's not the actual problem. See, I applied a fading blur effect and the thing is, it looks cool but if you decide to alter the actual curves size via the uniform interface scalexy, you also alter the area the blur effect is applied to. And sadly it looks like crap after that.
I tried to make it scalexy.x or scalexy.y or even scalexy dependent but for some reason the compiler always gave me the "not allowed" garbage, so in the end I had to manually adjust the blur area with another uniform interface variable after using scalexy.
The thing is, I probably would have figured some way around it sooner or later (if I had my computer) I guess, so it's no big deal but I think implementing 2 or 3 Universal variables you could use with the uniform interface wouldn't be that bad.
They don't have to be something pre-defined like height or scalexy. It would me more like this:
You have a uniform float universal1.
Shader 1 would use the universal1 variale to calculate the random effect x.
Shader 2 wouldn't use it at all (but has to define it).
Shader 3 would use it for calculating some kind of length between 2 objects.