libretro / common-shaders

Collection of commonly used Cg shaders. These shaders are usable by either HLSL and/or Cg runtime compilers. The cg2glsl script will translate most of these into GLSL shaders.
http://www.libretro.com
1.03k stars 250 forks source link

Where is the gamma shader ? #137

Closed inukaze closed 6 years ago

inukaze commented 6 years ago

Hi there, on old versions, i found shaders_cg/misc/gamma.cg for example. but in the recent version i can't find it. i want to use it, for correct colors when i use and apply 2xsai shader. because the gamma and brightness is more than the colors.

i need the shader for fix it.

hizzlekizzle commented 6 years ago

I just browsed through the history and never saw any gamma.cg shader in the misc directory. You can adjust gamma through the image-adjustment shader, though.

inukaze commented 6 years ago

Ok i am on trip right now, when i go back to home, i share the file by this way. because i dont remember in which version of RetroArch i obtain the shader i am saying this can be on 5 days or 14 days. another filter very similar i had on home is called "snes-gamma-ramp.cg" but i can't find in the lastest version.

inukaze commented 6 years ago

Hi there i am home right now, i put wrong the path. the path is

/shaders/shaders_cg/TV/gamma.cg i attach the zip file, with the content of that folder, is just 5 files : /shaders/shaders_cg/TV/snes-hires-blend.cg /shaders/shaders_cg/TV/Scanline.cg /shaders/shaders_cg/TV/phosphor.cg /shaders/shaders_cg/TV/gamma.cg /shaders/shaders_cg/TV/cgwg-CRT-flat.cg [retroarch_cg_shaders_TV.zip](https://github.com/libretro/common-shaders/files/1565812/retroarch_cg_shaders_TV.zip)
hizzlekizzle commented 6 years ago

That functionality was folded into the image-adjustment shader, but that shader also handled things strangely/incorrectly, so I changed them to work in a more conventional manner (e.g., I used a grayscale calculation that's perceptually consistent across colors instead of just applying the same weight to each channel). If you just like the way it looked regardless of "correctness", the new higan/nSide cores have the gamma ramp as a core option.