66 lines
797 B
Text
66 lines
797 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:
|
|
passthrough;
|
|
}
|
|
|
|
wireframe
|
|
{
|
|
default:
|
|
Disable;
|
|
}
|