git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@4 24008968-59e6-ed4c-a10b-0b2c954b24ab
23 lines
461 B
HLSL
23 lines
461 B
HLSL
struct PixelShaderInput {
|
|
float4 pos : SV_POSITION;
|
|
float4 uvst : COORDINATES;
|
|
};
|
|
|
|
struct PixelShaderOutput {
|
|
float4 color : SV_TARGET;
|
|
};
|
|
|
|
Texture2D<float4> tex1 : register(t0);
|
|
|
|
SamplerState texture_sampler : register(s0);
|
|
|
|
PixelShaderOutput main(PixelShaderInput input) {
|
|
PixelShaderOutput output;
|
|
|
|
#if 1
|
|
output.color = tex1.Sample(texture_sampler, input.uvst.xy);
|
|
#else
|
|
output.color = float4(1, 0, 1, 1);
|
|
#endif
|
|
return output;
|
|
} |