PhosphorLUT ported to Cg

I made a bunch of updates to this shader to make it work better at 1080p and 4K, and I made presets that work in maister’s NTSC and scanlines from my interlacing shader (so, also handles interlaced content). The versions that don’t say ‘noblend’ after them force the frame to a 256 px horizontal size to smooth out SNES pseudo transparency and Genesis jailbar dithering, but they can make high-res text and text on some games (notably CPS1/2/3) look bad, so use the ‘noblend’ versions on those. The 4K versions have more detail on high-res/dpi screens and more “dynamic” scanlines relative to the other 1080p-friendly variants, but they’re a little too demanding for my GPU and don’t get full speed. I left them in anyway for people with better GPUs.

Here are a couple of screenshots (both are from the 4K variants): And here are some 4x/1080p shots: <- shadowmask interlaced <- aperture grille, no interlacing/scanlines

Oh yeah, I forgot to mention that the new version is much faster (I get full speed with the non-4K variants on my Radeon R7 270) and the scanlines from the interlaced versions look good at any scale factor, even non-integer. Here’s a shot of it at 1080p with integer scaling disabled and crop overscan enabled:

Nice work, hunterk! The screenshots are great!!