Author Topic: Anyone got a gamma shader?  (Read 2841 times)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Anyone got a gamma shader?
« on: 2015-10-22 14:35:17 »
Just need a basic shader for FF7 that increases gamma / brightness.  FF7 PC seems to have wrong lightning vs PSX and I need something to compensate.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: Anyone got a gamma shader?
« Reply #1 on: 2015-10-22 14:54:15 »
Try reshade, it does work with OpenGl based games. It has sweet.fx and other post shader. I recommend HDR, FXAA and Filmgrain.
http://reshade.me/

http://forums.qhimm.com/index.php?topic=12260.msg229776#msg229776
« Last Edit: 2015-10-22 15:11:08 by Kaldarasha »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Anyone got a gamma shader?
« Reply #2 on: 2015-10-25 00:14:57 »
Not sure where I am with all that?  Is there a simple file I can use to just alter a gamma amount and pop in the ff7 shader folder?

Rumbah

  • *
  • Posts: 58
    • View Profile
Re: Anyone got a gamma shader?
« Reply #3 on: 2015-10-26 21:18:27 »
I haven't installed FF7 so I cannot test it and I've never written a GL fragment shader. But some time ago I emulated the old BSNES gamma procedure in cg.

I tried to copy it to GL by editing the bloom2 shader:
Code: [Select]
// very simple bloom shader, shamelessly stolen from http://myheroics.wordpress.com/

uniform sampler2D tex;
uniform float width;
uniform float height;

void main()
{
   vec2 texcoord = vec2(gl_TexCoord[0]);

   vec3 res = texture2D(tex, texcoord).xyz;
   res = (res > 0.5) ? res : pow(res * 2, vec3(1.5))*0.5;
   
   gl_FragColor = vec4(res, 1.0);
}

But as I said I can't test it on my system. So yours might explode :p If I got the correct syntax at all.


If it does not work you might ask the guys at the libretro.com forum in the shader section.
« Last Edit: 2015-10-26 21:20:36 by Rumbah »