Hi all,
Ive made my first pixal shader.
But I have a question.

I cannot upload a picture at this current time but heres the code that ive programmed from a tutorial:
Code:
 
Material ShinyTiles
{
Skin1 = AlphaMap;
Skin2 = EffectMap;
Effect"
Texture entSkin1;
Texture entSkin2;
Texture mtlSkin1;
Texture mtlSkin2;

Technique Test
{
Pass P0
{
Texture[0] = <entSkin1>;
Texture[1] = <entSkin2>;
Texture[2] = <mtlSkin1>;
Texture[3] = <mtlSkin2>;

TexCoordIndex[0] = 1;
TexCoordIndex[1] = 0;
TexCoordIndex[2] = 1;
TexCoordIndex[3] = 1 ;
PixelShader = asm
{
ps_1_2

tex t0
texdp3tex t1,t0

dp3 r0,t1,t0
};
}
}
";
}



What I want to do is have the shiny floor move with the camera when the camera looks at it in another position. Could I do this by adding something like CAMERA_POSITION somewhere?

Thanks
-Bright



KAIN - Coming soon...