diff options
| author | Juan Linietsky | 2017-08-31 09:43:33 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-31 09:44:37 -0300 |
| commit | 9ff19951e20b5d944375aed4fe60fb9239e0d7a5 (patch) | |
| tree | 5becb2dbf558463c3aa5b251eacd5051c9812948 /scene/resources/material.cpp | |
| parent | 41e1bbd30c1e6db57e3fbbc037f6ce4645e20fb9 (diff) | |
| download | godot-9ff19951e20b5d944375aed4fe60fb9239e0d7a5.tar.gz godot-9ff19951e20b5d944375aed4fe60fb9239e0d7a5.tar.zst godot-9ff19951e20b5d944375aed4fe60fb9239e0d7a5.zip | |
Fixed problem with non triplanar UV2 mode as described in issue. Closes #9979
Diffstat (limited to '')
| -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 5236461ad..315351d03 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -530,7 +530,7 @@ void SpatialMaterial::_update_shader() { } if (detail_uv == DETAIL_UV_2 && !flags[FLAG_UV2_USE_TRIPLANAR]) { - code += "\tUV2=UV2*uv2_scale+uv2_offset;\n"; + code += "\tUV2=UV2*uv2_scale.xy+uv2_offset.xy;\n"; } if (flags[FLAG_UV1_USE_TRIPLANAR] || flags[FLAG_UV2_USE_TRIPLANAR]) { //generate tangent and binormal in world space |
