mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-30 15:41:30 +00:00
27 lines
462 B
HLSL
27 lines
462 B
HLSL
|
// 2D color-only rendering shader
|
||
|
// Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||
|
|
||
|
// Pixel input data
|
||
|
struct PixelData
|
||
|
{
|
||
|
float4 pos : POSITION;
|
||
|
float4 color : COLOR0;
|
||
|
float2 uv : TEXCOORD0;
|
||
|
};
|
||
|
|
||
|
// Pixel shader
|
||
|
float4 ps_normal(PixelData pd) : COLOR
|
||
|
{
|
||
|
return pd.color;
|
||
|
}
|
||
|
|
||
|
// Technique for shader model 2.0
|
||
|
technique SM20
|
||
|
{
|
||
|
pass p0
|
||
|
{
|
||
|
VertexShader = null;
|
||
|
PixelShader = compile ps_2_0 ps_normal();
|
||
|
}
|
||
|
}
|