Skip to content

Frustum culling can rarely change the draw order of render regions #2244

@douira

Description

@douira

Bug Description

The render order is wrong in this situation which leads to sorting artifacts. Since the artifacts go away with camera angle, it's not a normal translucency sorting problem.

Screenshot 2024-01-04 at 04 45 08
Screenshot 2024-01-04 at 04 45 06

Reproduction Steps

  • Make a world with seed -1209221951706518130, RD 2 is enough. According to @Lolothepro, it needs FOV <= 71
  • Run /execute in minecraft:overworld run tp @s -2091.80 82.74 -1928.06 47.84 23.10
  • Observe a line in the ice near the bottom of the screen
  • Run /execute in minecraft:overworld run tp @s -2091.80 82.74 -1928.06 50.54 25.80
  • Observe the line disappear

The tp commands only differ in camera facing.

Log File

2024-01-04-7.log

Crash Report

crash-2024-01-04_14.47.36-client.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions