summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorStefan Boronczyk <stefan@strikd.com>2021-04-25 03:28:10 +0200
committerStefan Boronczyk <stefan@strikd.com>2021-04-25 03:32:17 +0200
commitf15cabcfd2076d2e18f0368a37c8116f34840e6b (patch)
tree88f6600f8efb1154e06ae88ddd6bcb571a3db8f1 /scene
parentd1dc28e46c5ecb5cbbeeaccbca9940a070538a2a (diff)
fix triplanar mapping for AO
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/material.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 5647856736..d5a018ef41 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -672,7 +672,7 @@ void BaseMaterial3D::_update_shader() {
code += "uniform sampler2D texture_flowmap : hint_aniso," + texfilter_str + ";\n";
}
if (features[FEATURE_AMBIENT_OCCLUSION]) {
- code += "uniform sampler2D texture_ambient_occlusion : hint_white;\n";
+ code += "uniform sampler2D texture_ambient_occlusion : hint_white, " + texfilter_str + ";\n";
code += "uniform vec4 ao_texture_channel;\n";
code += "uniform float ao_light_affect;\n";
}