godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.12k stars 20.2k forks source link

Multiple overlapping sprites with normal maps blended incorrectly #24076

Open szamq opened 5 years ago

szamq commented 5 years ago

Godot version: 3.1 gles3

Issue description: When you have overlapping sprites with normalmaps like in the gif and the project, the are incorrectly blended together. It looks like the normalmap from sprite below is going through the other one ezgif-4-38c0bd09aa95

Minimal reproduction project: https://drive.google.com/open?id=19TOz7OEjTpsPJkOcpVv7IlfFy-Xi2ise

KoBeWi commented 4 years ago

Can anyone still reproduce this bug in Godot 3.2.2 or any later release?

(I tried the project, but not sure if this is still bugged)

szamq commented 4 years ago

Just tried on 3.2.2 and the bug is still there (normal map from sprite inside the viewport container is visible on the other sprite, even if you remove the normal map from the other sprite)