Hi,
I was able to sent the players position with vecSkill41. But now I need two values more. I used vecSkill41.w for one-> no Problems. Now I thought that I can use two mtlSkills on the same way, but I thought wrong
...a little bit Code:
function mat_event()
{
my.Skill44=floatv(x);
mtl.skill1=floatv(x);
str_for_num(test_str1, my.Skill44);
str_for_num(test_str2, mtl.skill1);
//both test strings show me the same value!
}
MATERIAL* terr_mat=
{
flags=ENABLE_RENDER;
event=mat_event;
effect=
"
float4 vecSkill41;
float mtlSkill1;
....vertexshader etc. .....
pixelshader:
....
float tx1 = 0.25 * vecSkill41.w;
float tx2 = 0.25 * mtlSkill1;
float4 c1 = tex2D(texture,float2(Tex.x+tx1,Tex.y));
float4 c2 = tex2D(texture,float2(Tex.x+tx2,Tex.y));
return c1; //what I want
return c2; //unuseable result!!!
";
}
I want to modify Tex.y too-so I need a second value, but mtlSkill doesnt works!
Whats the problem?
Thx.