I have tried this with both float and float4 I'm setting the value as you would expect like this;
Code:
material tester
{
//skill1 = 0.5; also tried setting it here.
effect = "ati.fx";
}
action test_shader
{
tester.skill1 = 0.5;
my.material = tester;
}
This does not work for me, I have also just tried changing the case to mtlskin1 in stead of mtlSkin1 though I believe it should be mtlSkin1 not the lower case. I should also mention the problem seems to be in the shader it’s self since the above method dose pass a value along to the shader… the problem is any thing above 0 is treated as 1 so there is no distinction between 0.1, and 1. I believe the problem lies in calling the variable as a float… for which I have no solution.
cheers