Search in sources :

Example 1 with LightResult

use of me.jellysquid.mods.sodium.client.render.light.LightResult in project sodium-fabric by CaffeineMC.

the class ChunkBlockRenderPipeline method renderQuadList.

private void renderQuadList(BlockRenderView world, BlockState state, BlockPos pos, LightPipeline lighter, Vector3f translation, VertexConsumer builder, List<BakedQuad> quads, Direction dir) {
    for (BakedQuad quad : quads) {
        LightResult light = this.cachedLightResult;
        lighter.apply((ModelQuadView) quad, pos, light);
        this.renderQuad(world, state, pos, builder, translation, (ModelQuadView) quad, light.br, light.lm);
    }
}
Also used : BakedQuad(net.minecraft.client.render.model.BakedQuad) LightResult(me.jellysquid.mods.sodium.client.render.light.LightResult)

Aggregations

LightResult (me.jellysquid.mods.sodium.client.render.light.LightResult)1 BakedQuad (net.minecraft.client.render.model.BakedQuad)1