Fix viewport vflip

This commit is contained in:
Hiroshi Ogawa 2017-10-12 16:01:25 +09:00
parent 409e58e67a
commit cb2e88ead6

View file

@ -175,12 +175,9 @@ vec3 tonemap_reindhart(vec3 color,float white) {
return ( color * ( 1.0 + ( color / ( white) ) ) ) / ( 1.0 + color );
}
void main() {
ivec2 coord = ivec2(gl_FragCoord.xy);
vec3 color = texelFetch(source,coord,0).rgb;
vec4 color = textureLod(source, uv_interp, 0.0);
#ifdef USE_AUTO_EXPOSURE
@ -324,5 +321,3 @@ void main() {
frag_color=vec4(color.rgb,1.0);
}