diff options
author | quou <quou@disroot.org> | 2025-01-14 23:39:59 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-14 23:39:59 +1100 |
commit | 2b1af353bfead225e7afc10c5b6d3f6ecd44068b (patch) | |
tree | 50987242bbc48759da506499858fdc2649c2ea6a | |
parent | ec1ab61e120858b3fc646f9b330bc6a977d576a9 (diff) |
fix material.ao not being read in surface
-rw-r--r-- | intermediate/surface.glsl | 2 |
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); } |