Heart-of-the-Machine / heart-of-the-machine

Heart of the Machine ModFest 1.16 entry
MIT License
5 stars 0 forks source link

Fix Leyline Z-Fighting #60

Open Kneelawk opened 3 years ago

Kneelawk commented 3 years ago

Currently, leylines render on blocks by positioning the leyline quads a short distance above the normal block quads. This is because the leyline layer uses 4 quads per side to facilitate connected-textures, but it means that the leyline textures won't be applied on top of the normal block texture as a decal.

The current way to rendering leylines mostly works, but if viewing the leylines from a distance, some z-fighting is visible.

Kneelawk commented 3 years ago

The best way to fix this would most likely be to divide the face of the block beneath the leyline quads into 4 quads per side, just like the leyline quads, so that the leyline quads apply as decals.

Kneelawk commented 3 years ago

68 addresses most of this issue. However, Plassein Log Leylines cannot use the new system because their decals don't apply properly when rotated.