summaryrefslogtreecommitdiffstats
path: root/engine/shaders/forward.frag
diff options
context:
space:
mode:
Diffstat (limited to 'engine/shaders/forward.frag')
-rw-r--r--engine/shaders/forward.frag4
1 files changed, 1 insertions, 3 deletions
diff --git a/engine/shaders/forward.frag b/engine/shaders/forward.frag
index e2fc158e..0ee1159d 100644
--- a/engine/shaders/forward.frag
+++ b/engine/shaders/forward.frag
@@ -75,9 +75,7 @@ void main() {
F0 = mix(F0, albedo, metallic);
vec3 Lo = BRDFIlluminance(N, V, F0, albedo, dielectric, roughness);
- // Add 500 nits ambient light.
- vec3 ambient = vec3(500.00) * albedo;
- vec3 color = XYZ_TO_SRGB * ((ambient + Lo) * CAMERA_EXPOSURE);
+ vec3 color = XYZ_TO_SRGB * (Lo * CAMERA_EXPOSURE);
outColor = vec4(GammaCorrect(color.x), GammaCorrect(color.y), GammaCorrect(color.z), 1.0);
}