VOGONS

Common searches


First post, by doorhenge

User metadata
Rank Newbie
Rank
Newbie

Is there any such glsl shader or fx shader that can just allow me to just change the gamma brightness?
No crt or scan line stuff that slows everything down with it, I just wanna change the brightness.

If not, is there a dosbox fork somewhere that allows this?

Reply 1 of 2, by leileilol

User metadata
Rank l33t++
Rank
l33t++

It's possible with a pow function in a fragment shader. GLSL code example (not a working shader in itself)

	float gamma = 1.0;  // change this

gl_FragColor.r = pow(gl_FragColor.r, 1.0 / gamma);
gl_FragColor.g = pow(gl_FragColor.g, 1.0 / gamma);
gl_FragColor.b = pow(gl_FragColor.b, 1.0 / gamma);

apsosig.png
long live PCem