Mikemon/assets/shader/basic_pixel_shader.hlsl
mikeb c9a741df87 create window, added directx rendering, assets folder: shader, load files, include math, log and string header
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@2 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-23 18:18:32 +00:00

18 lines
332 B
HLSL

struct PixelShaderInput {
float4 pos : SV_POSITION;
float4 color : COLOR;
};
struct PixelShaderOutput {
float4 color : SV_TARGET;
};
PixelShaderOutput main(PixelShaderInput input) {
PixelShaderOutput output;
#if 1
output.color = input.color;
#else
output.color = float4(1, 0, 1, 1);
#endif
return output;
}