summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-14 20:34:01 -0300
committerGitHub <noreply@github.com>2018-08-14 20:34:01 -0300
commitda157744cd40c5052bc1ebdc66bed972c0a3e7a6 (patch)
tree18e247806ec8cc6736a1c3fef05aa75d1705ebe8 /scene
parenteef39bcb84bb00d570669856061e354ffa5f6bf5 (diff)
parentd7a9a224fd84f335d1d13deb54b140630baa0a61 (diff)
Merge pull request #21024 from godotengine/revert-20860-fix_border_artifact
Revert "Fix border artifacts at the edge of deep parallax."
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/material.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index dc29102492..875b72159a 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -694,8 +694,6 @@ void SpatialMaterial::_update_shader() {
}
code += "\t\tbase_uv=ofs;\n";
- code += "\t\tif(base_uv.x > 1.0 || base_uv.y > 1.0 || base_uv.x < 0.0 || base_uv.y < 0.0)\n";
- code += "\t\t\tdiscard;\n";
if (features[FEATURE_DETAIL] && detail_uv == DETAIL_UV_2) {
code += "\t\tbase_uv2-=ofs;\n";
}