That is not right lostclimate
![wink ;\)](/ubb7/images/graemlins/default_dark/wink.gif)
Each material has skill1 to skill20 those can be accessed from a shader through float4 vecSkill1; //skill1-4
float4 vecSkill5; //skill5-8
float4 vecSkill9; //skill9-12
float4 vecSkill13; //skill13-16
float4 vecSkill17; //skill17-20
And there are also the entityskills 41 to 44 (41 to 48 since A7.07) which can be accessed from a shader through:
float4 vecSkill41; //skill41-44
float4 vecSkill45; //skill45-48
If you want to pass a gamestudio var to a shader you have to use floatv() (float() with A6) to convert it to float.
You can also pass one matrix to a shader (8 with the latest beta). Just set the material matrix and use it within the shader as float4x4 matMtl.