Is it somehow possible to change the static switch parameter of a Material Instance Constant at runtime? I know its working with floats and vectors but for some reason there seems to be no way for bools.
I like to have the player choose from different shader effects. I would do it with liner interpolate nodes and then a alpha float parameter with 0 or 1 but that would always add up all effects to the constant registers and then i get the "Vertex Shader Constant uses to many constant registers for Shader model 3" error message. Maybe a workaround could be to convert a float to a bool in the material but I could find no way to do that either.
Replies
Yea, that works with swapping the materials, have tried that now. Its a bit tedious to set that up for all actors. A problem with that is that for some reason swapped in materials cant be animated with matinee. I can still change scalar values with set scalarparam though. But again strange is that in kismet you have only set scalar parameter and no set vector parameter.