cod4-sdk/raw/statemaps/additive_stencil.sm
2008-01-19 00:00:00 +00:00

68 lines
851 B
Text

alphaTest
{
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
GT0;
default:
passthrough;
}
blendFunc
{
default:
Add, InvDestAlpha, One;
}
separateAlphaBlendFunc
{
default:
Disable, One, Zero;
}
cullFace
{
default:
passthrough;
}
depthTest
{
mtlDepthTest == LessEqual && mtlDestBlend == Zero:
Equal;
mtlDepthTest == LessEqual:
LessEqual;
default:
Equal;
}
depthWrite
{
default:
Disable;
}
colorWrite
{
default:
Enable, Enable;
}
polygonOffset
{
default:
passthrough;
}
stencil
{
default:
OneSided,
Equal, Keep, Keep, Keep,
Always, Keep, Keep, Keep;
}
wireframe
{
default:
Disable;
}