diff options
author | Black Cat! <iblackcatw@gmail.com> | 2018-08-26 21:58:52 +0400 |
---|---|---|
committer | Black Cat! <iblackcatw@gmail.com> | 2018-08-26 21:58:52 +0400 |
commit | 2fe4c5dda1ecbd87e18a40c85304740ba904896a (patch) | |
tree | d56ee404f00d93c0ba2b15b3bb8f9e8074a89ab4 | |
parent | db55d8a4b6ad6c14f2131e02b50689eb8380276f (diff) |
Fix error using triplanar UV with detail map
Fixes #18550
-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 b6d1916b2c..4727526b68 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -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"; } |