mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
Fix tone mapping
This commit is contained in:
parent
d2223a7b45
commit
17dbc8797b
@ -122,7 +122,7 @@ void main() {
|
|||||||
lighting += mix(ambient_light, texture(globalSetSkybox, R).rgb, metallic) * ao * diffuse_brdf; // this is NOT physically-based, it just looks cool
|
lighting += mix(ambient_light, texture(globalSetSkybox, R).rgb, metallic) * ao * diffuse_brdf; // this is NOT physically-based, it just looks cool
|
||||||
|
|
||||||
// tone mapping
|
// tone mapping
|
||||||
const vec3 hdr_color = min(emission + lighting, 1.0);
|
const vec3 hdr_color = emission + lighting;
|
||||||
outColor = vec4(hdr_color / (hdr_color + 1.0), 1.0);
|
outColor = vec4(hdr_color / (hdr_color + 1.0), 1.0);
|
||||||
//outColor = vec4(vec3(1.0 - shadow), 1.0);
|
//outColor = vec4(vec3(1.0 - shadow), 1.0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user