This commit is contained in:
Vincent Lejeune 2014-01-21 20:34:25 +01:00
commit 1f4e697e48

View File

@ -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.);
}