Posted By: sheefo
Passing Skills? - 09/08/06 22:33
Simple question: How can I pass a skill to an HLSL shader to use in an equation?
Posted By: Lion_Ts
Re: Passing Skills? - 09/09/06 00:27
look in manual for material skills 1..4, 5..8, 9..12, 13..16, 17.. 20 and entity skills 41..44
in shader:
...
float4 vecSkill41;
...
Out.Att1 = Light1 * vecSkill41.w;...
...
in c-script:
...
my.skill41 = float(...);
Posted By: sheefo
Re: Passing Skills? - 09/09/06 09:54
Does it need to be a vector skill? Can I pass just one skill without the three?
Posted By: Lion_Ts
Re: Passing Skills? - 09/09/06 20:01
yes, vector. therefore, you can pass one component, if you want. (entity.skill41->vecSkill41.x or entity.skill42->vecSkill41.y, for example).
Posted By: sheefo
Re: Passing Skills? - 09/09/06 21:07
Ah, I see. Thanks a lot.
I use vecSkill41.x and it works.