24 lines
589 B
Plaintext
24 lines
589 B
Plaintext
{
|
|
parms {
|
|
stageSort sortTrans
|
|
}
|
|
state {
|
|
blend GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
|
|
depthmask
|
|
alphamask
|
|
depthfunc GL_ALWAYS
|
|
}
|
|
hlsl_vp {
|
|
result.position.x = dot4( vertex.position, $mvpMatrixX );
|
|
result.position.y = dot4( vertex.position, $mvpMatrixY );
|
|
result.position.z = dot4( vertex.position, $mvpMatrixZ );
|
|
result.position.w = dot4( vertex.position, $mvpMatrixW );
|
|
|
|
result.texcoord0 = vertex.texcoord0.xyxy;
|
|
|
|
result.color = swizzleColor( vertex.color ) * $color;
|
|
}
|
|
hlsl_fp {
|
|
result.color = tex2D( $transMap, fragment.texcoord0.xy ) * fragment.color;
|
|
}
|
|
} |