summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-04 18:41:18 +1100
committerquou <quou@disroot.org>2025-01-04 18:41:57 +1100
commite85c68ffd7a9741fef24fa60e8be8a2deb63a8d0 (patch)
treea2ae7daa93f221be7547cd2255621017edb2a0a6
parent3b5a6b7665092aef6eb0cb30e7da25b6dbe8b178 (diff)
use ambient term in surface
-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);
}