Primed TNT experiences z-fighting while using the oneshot (GL 3.3) and multidraw (GL 4.3) chunk renderers
bytzo opened this issue ยท 3 comments
Expected Behavior
When viewing primed TNT, the white flashing overlay should blend with the TNT texture (see fig. 1). This works correctly in vanilla Minecraft, 1.16.x/stable
(specifically 885222a), and the oneshot (GL 2.0) renderer on 1.16.x/dev
(specifically f577eb2).
Actual Behavior
When viewing primed TNT, the white flashing overlay experiences z-fighting with the TNT texture (see fig. 2). This occurs using either the oneshot (GL 3.3) or multidraw (GL 4.3) renderer on 1.16.x/dev
(f577eb2).
Reproduction Steps
- Open a Minecraft world using
1.16.x/dev
(f577eb2). - Enter
/summon minecraft:tnt ~ ~ ~ {Fuse: 32767}
in the chat. - The white flashing overlay of the primed TNT experiences z-fighting with the TNT texture.
Additional Notes
- Built and run using OpenJDK 14.0.2.
- Tested on Fabric Loader 0.8.8+build.202.
- Started occurring on commit 620f5a3, which made changes to the oneshot (3.3) and multidraw (4.3) renderers.
- Does not apply to creepers.
Attachments
Fig. 1. The primed TNT entity's white flashing overlay blends with the TNT texture.
Fig. 2. The primed TNT entity's white flashing overlay experiences z-fighting with the TNT texture.
System Information
- Java Version: OpenJDK 14.0.2
- CPU: AMD Ryzen 7 3700x
- GPU: Nvidia GeForce RTX 2080 SUPER
- OS: Pop!_OS 20.04 LTS
Fixed by a9a783f.