stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
322 stars 33 forks source link

Render entities before translucent blocks. #123

Closed stackotter closed 1 year ago

stackotter commented 1 year ago

If you want to start contributing to the renderer, this issue will be a good way to learn your way around the rendering code.

The current render order is:

  1. Opaque blocks
  2. Translucent blocks
  3. Entities
  4. GUI

But this doesn't produce the correct result in every case as seen below. The correct order can be obtained by swapping entities and translucent blocks. This will require some refactoring.

Screen Shot 2022-09-10 at 10 13 36
gracien-app commented 1 year ago

It's mine.