@Correspondence_Pot wrote:
I want to start using pixel shaders in my 2D Monogame project, but even the simplest one I find refuses to build in my Monogame Pipeline project. Here's the FX file:
float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
{
return float4(1, 0, 0, 1);
}technique Technique1 { pass Pass1 { PixelShader = compile ps_4_0_level_9_1 PixelShaderFunction(); } }
And my build-error:
I'm targeting Windows 7.
I have no idea what's wrong because I'm new to graphics programming and Monogame. Can anyone tell me where to look to try and fix this?
Posts: 5
Participants: 3