Skip to content

Instantly share code, notes, and snippets.

@gmjosack
Created July 13, 2011 06:53
Show Gist options
  • Save gmjosack/1079848 to your computer and use it in GitHub Desktop.
Save gmjosack/1079848 to your computer and use it in GitHub Desktop.
Minimum 2D HLSL Pixel Shader
float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
{
return float4(1, 0, 0, 1);
}
technique Technique1
{
pass Pass1
{
PixelShader = compile ps_2_0 PixelShaderFunction();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment