From e85c68ffd7a9741fef24fa60e8be8a2deb63a8d0 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 4 Jan 2025 18:41:18 +1100 Subject: use ambient term in surface --- intermediate/surface.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-54-g00ecf