mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Merge pull request #21024 from godotengine/revert-20860-fix_border_artifact
Revert "Fix border artifacts at the edge of deep parallax."
This commit is contained in:
commit
da157744cd
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user