Skip to content

Commit

Permalink
Merge pull request godotengine#48170 from sboron/fix-ao
Browse files Browse the repository at this point in the history
Fix triplanar mapping for AO on Godot 4
  • Loading branch information
akien-mga authored Apr 25, 2021
2 parents d1dc28e + f15cabc commit 592f8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 592f8ec

Please sign in to comment.