aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/material.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-12-26 11:09:52 -0300
committerJuan Linietsky2017-12-26 11:09:52 -0300
commit2b31155baa48788327c927007decc4621a6bf19a (patch)
tree88cfcf29a39b06c6e5b72770d89150be0ee0e73c /scene/resources/material.cpp
parent4a2eef4ad801a3dc5c07a575e59b8f1eafa42c6e (diff)
downloadgodot-2b31155baa48788327c927007decc4621a6bf19a.tar.gz
godot-2b31155baa48788327c927007decc4621a6bf19a.tar.zst
godot-2b31155baa48788327c927007decc4621a6bf19a.zip
Diffstat (limited to 'scene/resources/material.cpp')
-rw-r--r--scene/resources/material.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 326320c60..cc9fde58e 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -753,7 +753,7 @@ void SpatialMaterial::_update_shader() {
if (features[FEATURE_REFRACTION] && !flags[FLAG_UV1_USE_TRIPLANAR]) { //refraction not supported with triplanar
if (features[FEATURE_NORMAL_MAPPING]) {
- code += "\tvec3 ref_normal = normalize( mix(NORMAL,TANGENT * NORMALMAP.x + BINORMAL * NORMALMAP.y + NORMAL * NORMALMAP.z,NORMALMAP_DEPTH) ) * SIDE;\n";
+ code += "\tvec3 ref_normal = normalize( mix(NORMAL,TANGENT * NORMALMAP.x + BINORMAL * NORMALMAP.y + NORMAL * NORMALMAP.z,NORMALMAP_DEPTH) );\n";
} else {
code += "\tvec3 ref_normal = NORMAL;\n";
}