Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Development » ipsharper shader patch
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
ipsharper shader patch [message #2630] Sat, 14 July 2012 16:54
snzk  [PM]
I've been using nn2x + bilinear interpolation for a while, but that isn't good for PC-FX/PSX games with high resolutions, so I tried the ipsharper shader. It wasn't quite sharp enough for me, so I decided to hack it a bit.

I've attached an unfinished patch that reimplements the shader by pushing the texture coordinates toward texel centers using pow() instead of multiply+clamp. The sharpness can be controlled by setting the exponent (the 'Sharp' variable) to a number > 0 (~nearest neighbor) and <= 1 (=linear). Presumably this would be presented to the user inversely, i.e. a sharpness of 0 = linear and a sharpness of 1 (or 100) = nearest neighbor.

What's currently missing is the ability to change the sharpness via the configuration file.

I'd be willing to work on the patch further if the developer(s) want to incorporate it.

[Updated on: Sat, 14 July 2012 17:58]

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Mednafen 0.9.22-WIP binaries for Mac and how to compile your own
Next Topic:Mednafen 0.9.24-WIP binaries for Mac
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sat May 18 09:18:30 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software