Sodium

Sodium

61M Downloads

Shading issue with partial quads

CreativeMD opened this issue ยท 0 comments

commented

Hello there,

I'm the author of LittleTiles and I ran into an issue with the shading of certain quads when Sodium is installed. I cannot tell whether this is an issue on my end or an issue of Sodium itself. That's why I ask here.

LittleTiles is a bit complicated. To make it short, it generates the rendering data on its own. I tried to mirror what sodium does. This is the code responsible for the rendering and it should look exactly the same: https://github.com/CreativeMD/LittleTiles/blob/1.21/src/main/java/team/creative/littletiles/client/mod/sodium/pipeline/LittleRenderPipelineSodium.java#L221-L228

To give a bit more context. LittleTiles gets the baked model of a block and shrinks each quad to the size of the tile being displayed. Then this quad is passed on here: https://github.com/CreativeMD/LittleTiles/blob/1.21/src/main/java/team/creative/littletiles/client/mod/sodium/pipeline/LittleRenderPipelineSodium.java#L198

Here is the screenshot showing the issue. The selected blocks are all blocks from littletiles. The shading is correct for the outside blocks (meaning full quads work just fine), but the 3 ones in the middle with are filled with different shapes have the lighting issue. These quads are partially filled as they sit at the edge of the block, but do not fill the entire area.

Image

I hope I could explain it so you can understand it. Maybe we can figure out the cause?

Note: Skylight does work properly, it seems to be the block light layer.

In Regards
CreativeMD