Posted By: Superku
Dynamic lights and blocks - 03/05/10 01:48
I am using dynamic lights for shaders and models but I do not want them to affect the level geometry (blocks). Is this possible?
MATERIAL* no_dlight
{
effect=
"
texture entSkin1;
texture entSkin2;//I forgot, is it entskin2 or entskin3?
technique no_dlight
{
pass p0
{
Texture[0] = <entSkin2>;
Texture[1] = <entSkin1>;
ColorArg1[0] = Texture; // shadow map
ColorOp[0] = SelectArg1;
ColorArg1[1] = Texture; // color map
ColorArg1[1] = Current; // shadow map
ColorOp[1] = Modulate2X; //Also try modulate, or modulate4x
magfilter[1] = linear;
minfilter[1] = linear;
mipfilter[1] = linear;
}
}
";
};