18 lines
510 B
Plaintext
18 lines
510 B
Plaintext
{
|
|
parms {
|
|
stageSort sortDecal
|
|
}
|
|
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.xy = vertex.texcoord0.xy;
|
|
result.texcoord0.zw = _float2( 0.0 );
|
|
}
|
|
hlsl_fp {
|
|
// Get the alpha value from the coverMap
|
|
result.color = tex2D( $editorMap, fragment.texcoord0.xy ) * $editorColor;
|
|
}
|
|
} |