We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03bd8ba commit bf8edd2Copy full SHA for bf8edd2
scene/resources/material.cpp
@@ -1745,8 +1745,12 @@ void fragment() {)";
1745
if (features[FEATURE_BENT_NORMAL_MAPPING]) {
1746
code += R"(
1747
// Bent Normal Map: Enabled
1748
- BENT_NORMAL_MAP = texture(texture_bent_normal, base_uv).rgb;
1749
)";
+ if (flags[FLAG_UV1_USE_TRIPLANAR]) {
1750
+ code += " BENT_NORMAL_MAP = triplanar_texture(texture_bent_normal, uv1_power_normal, uv1_triplanar_pos).rgb;\n";
1751
+ } else {
1752
+ code += " BENT_NORMAL_MAP = texture(texture_bent_normal, base_uv).rgb;\n";
1753
+ }
1754
}
1755
1756
if (features[FEATURE_EMISSION]) {
0 commit comments