D
DLPB_
Guest
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.
// 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);}