summaryrefslogtreecommitdiff
path: root/intermediate
diff options
context:
space:
mode:
Diffstat (limited to 'intermediate')
-rw-r--r--intermediate/surface.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/intermediate/surface.glsl b/intermediate/surface.glsl
index 8afc657..0f55016 100644
--- a/intermediate/surface.glsl
+++ b/intermediate/surface.glsl
@@ -127,7 +127,7 @@ void main() {
float light = max(dot(nrm, vec3(0, 0, 1)), 0.0);
vec3 ambient = 0.05.xxx * texture(ao, uv).r;
- vec3 col = light * material.albedo;
+ vec3 col = ambient + light * material.albedo;
col *= texture(albedo, uv).rgb;
colour = vec4(col, 1.0);
}