How to set loop iteration count from Material Inspector

I’ve been out of the ShaderLab loop for a while. What have you guys come up with for dealing with the topic? multi_compile doesn’t sound like the answer, to me.

Oddly enough, when i tried a “uniform static const int”, it did compile and worked when i set the value from script (using 4.5).
I dont know why.

1 Like