Item 4 of 20 Previous | Next

1
Vote

VPOS is relative to desktop, not to application

description

The values passed in through VPOS are relative to desktop instead of the render target.

To show this is a bug, setup a shader in Shazzam with this input:
float2 Screen : VPOS;

Then add this code:
if ( screen.x > 800 )
result = float4(0,1,0,1); // Green
else
result = float4(0,0,1,1); // Blue
return result;

If running inside Shazzam it's relative to desktop, if running in a WPF app it's relative to the Window.

No files are attached

comments

WaltRitscher wrote Jan 9 at 3:35 AM

I need more details. Can you supply the entire shader text?