Fix Little Tiles rendering issues (#2238)

This commit is contained in:
DarkShadow44 authored and GitHub committed 2026-10-08 17:13:36 -07:00
1 parent 78abc05711
commit cae4fea2bb
5 files changed
+70 -2

No files matched your search

@@ -442,6 +442,7 @@ public enum Mixins implements IMixins {
, "celeritas.terrain.MixinWorld_AwaitingDescriptor"
, "celeritas.terrain.MixinRenderRegion"
, "celeritas.terrain.MixinChunkRenderList"
, "celeritas.terrain.MixinChunkMeshBufferBuilder"
, "celeritas.terrain.MixinVisibleChunkCollector"
, "celeritas.terrain.MixinRenderListManager"
, "celeritas.terrain.MixinSectionRenderDataStorage"
@@ -76,8 +76,10 @@ public class AngelicaChunkBuildContext extends ChunkBuildContext {
super(renderPassConfiguration);
this.textureAtlas = (TextureMapExtension) Minecraft.getMinecraft().getTextureMapBlocks();
this.worldSlice = new WorldSlice(world);
this.smoothLightPipeline = new SmoothLightPipeline(lightDataCache, VanillaDiffuseProvider.INSTANCE, false);
this.flatLightPipeline = new FlatLightPipeline(lightDataCache, VanillaDiffuseProvider.INSTANCE, false);
// Shade by the quad normal so sloped quads blend the face shades instead of snapping to the dominant axis;
// axis-aligned quads come out the same either way
this.smoothLightPipeline = new SmoothLightPipeline(lightDataCache, VanillaDiffuseProvider.INSTANCE, true);
this.flatLightPipeline = new FlatLightPipeline(lightDataCache, VanillaDiffuseProvider.INSTANCE, true);
this.quadView = new VertexArrayQuadView(vertices);
this.hasColoredLight = quadLightData instanceof ExtQuadLightData;
}
@@ -109,6 +109,18 @@ public class VertexArrayQuadView implements ModelQuadView {
return trueNormal;
}
/**
* Directional shading follows the geometry, never the tessellator normal. In 1.7.10 chunk rendering a normal set
* through setNormal has no visible effect (the face shade is baked by RenderBlocks), so no block relies on it for
* shading. It does stay set until the next startDrawing though, so a normal from inventory-style code early in a
* block would otherwise shade every later face of that block, e.g. a renderStandardBlock cube with all sides lit
* like the top.
*/
@Override
public int getModFaceNormal() {
return trueNormal;
}
/**
* Gets the cull face of a quad. This is distinct from the light face, as it will not be set for non-axis-aligned
* and non-block-grid-aligned quads (i.e. quads on the surface of the 1x1x1 cube).