Applied Energistics 2

Applied Energistics 2

156M Downloads

Ambient Occlusion gets rotated along with the block

shartte opened this issue ยท 2 comments

commented

2020-08-08 13_13_02-Minecraft_ 1 16 1 - Singleplayer
2020-08-08 13_13_14-Minecraft_ 1 16 1 - Singleplayer
2020-08-08 13_13_22-Minecraft_ 1 16 1 - Singleplayer
2020-08-08 13_13_30-Minecraft_ 1 16 1 - Singleplayer

commented

With a white test texture, rotating the face makes it obvious:

grafik
grafik
grafik

The reason for this is that Vanilla expects the order of vertices to imply where they are in the relation to the cardinal directions of the world. (see net.minecraft.client.renderer.FaceInfo)

While it's not particularly fast, an easy fix is using Vanilla's way of calculating this info. See net.minecraft.client.renderer.block.model.FaceBakery#recalculateWinding

commented

Interestingly, this can even be observed on Fabric.