Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

SV_POSITION Output Doesn't Work in Pixel Shader

$
0
0

@Dom_DiMaggio wrote:

sample s0;
float4 BackgroundShift(float4 pos : SV_POSITION, float4 color1 : COLOR0, float2 texCoord : TEXCOORD0) : SV_POSITION0
{
return pos;
}


technique Technique1
{
pass Pass1
{
PixelShader = compile ps_5_0 BackgroundShift();
}
}

I get an error: "invalid ps_5_0 output semantic 'SV_POSITION0'".
SV_TARGET0 works for color modifications so why can't I modify position?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles