mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Make pbr bloom example compile
This commit is contained in:
@@ -42,7 +42,7 @@ void main()
|
||||
result = bloom_none(); break;
|
||||
}
|
||||
// tone mapping
|
||||
vec3 result = vec3(1.0) - exp(-hdrColor * exposure);
|
||||
result = vec3(1.0) - exp(-result * exposure);
|
||||
// also gamma correct while we're at it
|
||||
const float gamma = 2.2;
|
||||
result = pow(result, vec3(1.0 / gamma));
|
||||
|
||||
Reference in New Issue
Block a user