diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-25 11:07:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 11:07:07 +0200 |
commit | 592f8ecb5cba7f00e06f7e2e575e8a2d5b7b4619 (patch) | |
tree | 88f6600f8efb1154e06ae88ddd6bcb571a3db8f1 | |
parent | d1dc28e46c5ecb5cbbeeaccbca9940a070538a2a (diff) | |
parent | f15cabcfd2076d2e18f0368a37c8116f34840e6b (diff) |
Merge pull request #48170 from sboron/fix-ao
Fix triplanar mapping for AO on Godot 4
-rw-r--r-- | scene/resources/material.cpp | 2 |
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"; } |