From 5efa395acbdbe553f7fe5be963c3cdde69a4abea Mon Sep 17 00:00:00 2001 From: samuncle Date: Tue, 21 Jan 2014 20:01:05 +0100 Subject: [PATCH] SSAO is stronger now --- data/shaders/object_pass2.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/shaders/object_pass2.frag b/data/shaders/object_pass2.frag index 4ccb2ceea..116351001 100644 --- a/data/shaders/object_pass2.frag +++ b/data/shaders/object_pass2.frag @@ -16,5 +16,6 @@ void main(void) vec3 SpecularComponent = texture(SpecularMap, tc).xyz; float ao = texture(SSAO, tc).x; vec3 LightFactor = ao * ambient + DiffuseComponent + SpecularComponent * (1. - color.a); - FragColor = vec4(color.xyz * LightFactor, 1.); + + FragColor = vec4(color.xyz * LightFactor * ao, 1.); }