Merge pull request #42944 from Calinou/tonemap-shader-remove-unused-define

Remove unused `#define` from the tonemap shader
This commit is contained in:
Rémi Verschelde 2020-10-20 21:02:04 +02:00 committed by GitHub
commit 207cfc9253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,8 +305,6 @@ vec3 do_fxaa(vec3 color, float exposure, vec2 uv_interp) {
}
}
#define QUARTER_COLOR 1.0 / 1024.0
// From http://alex.vlachos.com/graphics/Alex_Vlachos_Advanced_VR_Rendering_GDC2015.pdf
// and https://www.shadertoy.com/view/MslGR8 (5th one starting from the bottom)
// NOTE: `frag_coord` is in pixels (i.e. not normalized UV).