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.
13 lines
216 B
13 lines
216 B
#version 330
|
|
|
|
uniform sampler2D tex;
|
|
uniform float maxf;
|
|
uniform float gamma;
|
|
|
|
in vec2 tex_coord_;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main(){
|
|
fragColor = pow(texture(tex, tex_coord_) / (maxf * gamma), vec4(1.0 / gamma));
|
|
}
|
|
|