Skip to content

Commit

Permalink
Merge pull request godotengine#21453 from BlackCatter/triplanar-detai…
Browse files Browse the repository at this point in the history
…l-fix

Fix error using triplanar UV with detail map
  • Loading branch information
reduz committed Aug 27, 2018
2 parents 02d2676 + 2fe4c5d commit 2428ec6
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 @@ -924,7 +924,7 @@ void SpatialMaterial::_update_shader() {

if (flags[FLAG_UV1_USE_TRIPLANAR]) {

code += "\tvec4 detail_mask_tex = triplanar_texture(texture_detail_mask,uv1_power_normal);\n";
code += "\tvec4 detail_mask_tex = triplanar_texture(texture_detail_mask,uv1_power_normal,uv1_triplanar_pos);\n";
} else {
code += "\tvec4 detail_mask_tex = texture(texture_detail_mask,base_uv);\n";
}
Expand Down

0 comments on commit 2428ec6

Please sign in to comment.