diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-12 13:38:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-12 13:38:29 +0200 |
commit | 552384e737c41f8755787afcec9946e4b7663189 (patch) | |
tree | 8b4b126dad6ef2e39be61b6999e27bcfd43e0b9f /drivers | |
parent | d68cc729256435fa9af17163763aa575a472a423 (diff) | |
parent | cb2e88ead68f6b8b7f26c3b24b7b4b5d862e9719 (diff) |
Merge pull request #12048 from hi-ogawa/fix-viewport-vflip
Fix viewport vflip
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/shaders/tonemap.glsl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gles3/shaders/tonemap.glsl b/drivers/gles3/shaders/tonemap.glsl index 73dec4f90c..2f671158b2 100644 --- a/drivers/gles3/shaders/tonemap.glsl +++ b/drivers/gles3/shaders/tonemap.glsl @@ -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); } - - |