Just plain & simple global variable with gui annotations.
Code: Select all
int INDEX <
string UIName="PS INDEX";
string UIWidget="spinner";
int UIMax=4;
int UIMin=0;
> = {1};
Code: Select all
int INDEX <
string UIName="PS INDEX";
string UIWidget="spinner";
int UIMax=4;
int UIMin=0;
> = {1};
Prod80, can you explain more why this wouldn't work for what you are trying? Thanks.Using Techniques section isn't good for this purpose... I'll try and fiddle a bit more.
Because it's effect ... would results in many different techniques to compile different parts of shader for different effect combinations. Anyway I solved the branching issue with recoding the entire effect in a more efficient way (4 if statements, but no branch compared to old 6 if statements and 9 branches)Prod80 said:Prod80, can you explain more why this wouldn't work for what you are trying? Thanks.Using Techniques section isn't good for this purpose... I'll try and fiddle a bit more.