Open GeForceLegend opened 10 months ago
Can you please provide the shader used to reproduce this issue?
Can you please provide the shader used to reproduce this issue?
This affects almost all shaders simply using texture sample's alpha channel to discard the invisible top face of boats, for example, Chocapic13 V9.
This only happens when player is facing around -Z direction.
Noticed that when this bug happens, the invisible top part of boat is rendered directly after painting. Maybe Optifine does not set a texture, but using the prev draw call one when rendering this invisible part?
To approve this, I found another situation. If there are end portal blocks, the invisible top part sometimes (not always) writes to shadow. In this situation, the invisiable top part is using end portal texture, and it is rendered directly after end portals.
If Optifine set the texture of this invisbale part of boat to boat textures, it will fix this at most situation. Better fix might be creating and using a 1x1 texture with 0% opacity on this thing?
Related Nsight Grahpics capture, showing it's using end portal textures in shadow program.
Description of Issue
Boat has an invisible top that only writes to depth buffer but not color buffer to prevent water "leaks" into boat, and usually this face uses boat textures. But, if there is some rendering paintings, and the player is facing certain direction, invisible face of boat will using paintings texture. This will cause some shaders failed to discard that invisble face, as it will cause wrong depth when rendering faces inside the boat in deferred pipelines.
Steps to Reproduce
gbuffers_entities
like this:)Nsight graphics capture shows that the invisible top face of this oak boat is using painting texture:
After removing the painting, it turns normal:
OptiFine Version
1.20.1 I6 pre6
Installation Method
Standalone
F3 Debug Screenshot
Prior Testing
If you've installed standalone:
Vanilla Minecraft does not using any texture when rendering this.
Additional Information