View Single Post
Old 06 January 2017, 08:15   #15
Registered User
rsn8887's Avatar
Join Date: Oct 2006
Location: USA
Posts: 771
I think I have found a workaround using VPOS to access screencoords which seems to work in the shader.

However, I tested the shader and it does NOT give perfect integer scaled pixels at 2*, 3* etc. I am almost 100% sure it due to this problem:

From what I gather, it looks like WinUAE might not be offsetting the quad by the required 0.5 pixels to align it with the screen pixels.

I made a quick NULL_TEST D3D filter to show this. The output should be identical to using the internal NULL filter, or the "none" filter. But it is not.

To better see the pixels in the tests, I am using "integer scaling" and "lores" without line doubling.
Attached Thumbnails
Click image for larger version

Name:	NULL_Internal.jpg
Views:	52
Size:	83.7 KB
ID:	51595   Click image for larger version

Name:	NULLTEST_D3D.jpg
Views:	60
Size:	82.8 KB
ID:	51596   Click image for larger version

Name:	Settings.jpg
Views:	35
Size:	277.9 KB
ID:	51597  
Attached Files
File Type: zip (689 Bytes, 13 views)

Last edited by rsn8887; 06 January 2017 at 12:52.
rsn8887 is offline  
Page generated in 0.16656 seconds with 10 queries