summaryrefslogtreecommitdiff
path: root/intermediate
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-14 23:39:59 +1100
committerquou <quou@disroot.org>2025-01-14 23:39:59 +1100
commit2b1af353bfead225e7afc10c5b6d3f6ecd44068b (patch)
tree50987242bbc48759da506499858fdc2649c2ea6a /intermediate
parentec1ab61e120858b3fc646f9b330bc6a977d576a9 (diff)
fix material.ao not being read in surface
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 7819f23..0cba7f8 100644
--- a/intermediate/surface.glsl
+++ b/intermediate/surface.glsl
@@ -178,7 +178,7 @@ void main() {
cos_theta_i;
vec3 ambient =
min(amb_col, 0.05) *
- texture(ao, uv).r;
+ texture(ao, uv).r * material.ao;
colour = vec4(ambient + diffuse + spec, 1.0);
}