🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
235 B

varying vec2 texcoord;
uniform sampler2D tex;
uniform float intensity_scale;
uniform float gamma;
void main()
{
vec4 rgba = texture2D(tex, texcoord);
gl_FragColor = vec4(pow(intensity_scale * rgba.rgb, vec3(1.0 / gamma)), 1.0);
}