mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 06:49:28 -05:00
Add statemap raw files for iw4
This commit is contained in:
66
raw/iw4/statemaps/additive.sm
Normal file
66
raw/iw4/statemaps/additive.sm
Normal file
@ -0,0 +1,66 @@
|
||||
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;
|
||||
}
|
68
raw/iw4/statemaps/additive_stencil.sm
Normal file
68
raw/iw4/statemaps/additive_stencil.sm
Normal file
@ -0,0 +1,68 @@
|
||||
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;
|
||||
}
|
59
raw/iw4/statemaps/build_floatz.sm
Normal file
59
raw/iw4/statemaps/build_floatz.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
Always;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
63
raw/iw4/statemaps/build_shadowmap.sm
Normal file
63
raw/iw4/statemaps/build_shadowmap.sm
Normal file
@ -0,0 +1,63 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
Always;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
mtlCullFace == Back:
|
||||
Front;
|
||||
mtlCullFace == None:
|
||||
None;
|
||||
mtlCullFace == Front:
|
||||
Back;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Enable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/build_shadowmap_color.sm
Normal file
59
raw/iw4/statemaps/build_shadowmap_color.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
None;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Enable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/build_shadowmap_depth.sm
Normal file
59
raw/iw4/statemaps/build_shadowmap_depth.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
None;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Enable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Disable, Disable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
shadowmap;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/build_shadowmap_model.sm
Normal file
59
raw/iw4/statemaps/build_shadowmap_model.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Enable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Disable, Disable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
shadowmap;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
61
raw/iw4/statemaps/clear_alpha_stencil.sm
Normal file
61
raw/iw4/statemaps/clear_alpha_stencil.sm
Normal file
@ -0,0 +1,61 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
Always;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
Back;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Disable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
0;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
OneSided,
|
||||
Always, Zero, Zero, Zero,
|
||||
Always, Zero, Zero, Zero;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/color_only.sm
Normal file
59
raw/iw4/statemaps/color_only.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
Always;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
Back;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
LessEqual;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
0;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
68
raw/iw4/statemaps/default.sm
Normal file
68
raw/iw4/statemaps/default.sm
Normal file
@ -0,0 +1,68 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Disable, One, Zero;
|
||||
default:
|
||||
Add, InvDestAlpha, One;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Enable;
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
mtlPolygonOffset == 0:
|
||||
Enable, Enable;
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
68
raw/iw4/statemaps/default2d.sm
Normal file
68
raw/iw4/statemaps/default2d.sm
Normal file
@ -0,0 +1,68 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Disable, One, Zero;
|
||||
default:
|
||||
Add, InvDestAlpha, One;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
mtlPolygonOffset == 0:
|
||||
Enable, Enable;
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
0;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
Disable,
|
||||
Always, Keep, Keep, Keep,
|
||||
Always, Keep, Keep, Keep;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
64
raw/iw4/statemaps/effect_add.sm
Normal file
64
raw/iw4/statemaps/effect_add.sm
Normal file
@ -0,0 +1,64 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Enable;
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
66
raw/iw4/statemaps/multiply_fog.sm
Normal file
66
raw/iw4/statemaps/multiply_fog.sm
Normal file
@ -0,0 +1,66 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Add, One, One;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Enable;
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Enable, Enable;
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
64
raw/iw4/statemaps/nocolor.sm
Normal file
64
raw/iw4/statemaps/nocolor.sm
Normal file
@ -0,0 +1,64 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Enable;
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Disable, Disable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/objective.sm
Normal file
59
raw/iw4/statemaps/objective.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Add, SrcAlpha, One;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
Back;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
LessEqual;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/passthrough.sm
Normal file
59
raw/iw4/statemaps/passthrough.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
59
raw/iw4/statemaps/pixel_cost_add.sm
Normal file
59
raw/iw4/statemaps/pixel_cost_add.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
Always;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Add, One, One;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
68
raw/iw4/statemaps/premulalpha.sm
Normal file
68
raw/iw4/statemaps/premulalpha.sm
Normal file
@ -0,0 +1,68 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Add, One, InvSrcAlpha;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Disable, One, Zero;
|
||||
default:
|
||||
Add, InvDestAlpha, One;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
mtlBlendOp == Disable:
|
||||
Enable;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
mtlPolygonOffset == 0:
|
||||
Enable, Enable;
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
59
raw/iw4/statemaps/shadowcookie_receiver.sm
Normal file
59
raw/iw4/statemaps/shadowcookie_receiver.sm
Normal file
@ -0,0 +1,59 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Add, Zero, InvSrcColor;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
LessEqual;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
2;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
61
raw/iw4/statemaps/wireframe.sm
Normal file
61
raw/iw4/statemaps/wireframe.sm
Normal file
@ -0,0 +1,61 @@
|
||||
alphaTest
|
||||
{
|
||||
default:
|
||||
Always;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
Back;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
LessEqual;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Disable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
2;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
Disable,
|
||||
Always, Zero, Zero, Zero,
|
||||
Always, Zero, Zero, Zero;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Enable;
|
||||
}
|
64
raw/iw4/statemaps/zfeather_add.sm
Normal file
64
raw/iw4/statemaps/zfeather_add.sm
Normal file
@ -0,0 +1,64 @@
|
||||
alphaTest
|
||||
{
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
|
||||
mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
|
||||
GT0;
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
blendFunc
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
separateAlphaBlendFunc
|
||||
{
|
||||
default:
|
||||
Disable, One, Zero;
|
||||
}
|
||||
|
||||
cullFace
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthTest
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
depthWrite
|
||||
{
|
||||
mtlSrcBlend == One && mtlDestBlend == Zero:
|
||||
Enable;
|
||||
default:
|
||||
Disable;
|
||||
}
|
||||
|
||||
colorWrite
|
||||
{
|
||||
default:
|
||||
Enable, Enable;
|
||||
}
|
||||
|
||||
polygonOffset
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
stencil
|
||||
{
|
||||
default:
|
||||
passthrough;
|
||||
}
|
||||
|
||||
wireframe
|
||||
{
|
||||
default:
|
||||
Disable;
|
||||
}
|
Reference in New Issue
Block a user