Hello,
i'm trying to change some things in the Hlsl Terain Multitexturing Shader right now, but as i'm not well versed with shaders, that's not that easy for me.
Well, here's my problem:
I want to change this line
Code:
FinalColor *= MaskColor.b + vecSkill41.w;  


into something like this:
Code:
FinalColor *=  (factor *  MaskColor.b) + vecSkill41.w;  


The factor should be changeable in c-script, but i don't know how to do this, because vecSkill41..44 are already used by this shader. Is there another way to get variables from c-script into hlsl?

Thanks