1
0
Fork 0

experimental new rendering 3

This commit is contained in:
Sen 2025-08-30 22:33:04 +02:00
parent 7ae19e187e
commit 225377bb8c
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 7 additions and 7 deletions

View file

@ -3,7 +3,6 @@ package client.renderer;
public class DefaultVertexFormats
{
public static final VertexFormat BLOCK = new VertexFormat();
public static final VertexFormat BLOCK_SHADED = new VertexFormat();
public static final VertexFormat ITEM = new VertexFormat();
public static final VertexFormat OLDMODEL_POSITION_TEX_NORMAL = new VertexFormat();
public static final VertexFormat PARTICLE_POSITION_TEX_COLOR_LMAP = new VertexFormat();
@ -24,10 +23,11 @@ public class DefaultVertexFormats
static
{
BLOCK_SHADED.addElement(POSITION_3F);
BLOCK_SHADED.addElement(NORMAL_4B);
BLOCK_SHADED.addElement(TEX_2F);
BLOCK_SHADED.addElement(COLOR_4UB);
BLOCK.addElement(POSITION_3F);
BLOCK.addElement(NORMAL_4B);
BLOCK.addElement(TEX_2F);
BLOCK.addElement(COLOR_4UB);
BLOCK.addElement(TEX_2S);
ITEM.addElement(POSITION_3F);
ITEM.addElement(COLOR_4UB);
ITEM.addElement(TEX_2F);

View file

@ -3308,7 +3308,7 @@ public class Renderer {
{
if (state.getBlock() != Blocks.air && !state.getBlock().getMaterial().isLiquid())
{
int light = brightPos == null ? 0xffffffff : getLightmapValue(this.gm.world, brightPos);
int light = brightPos == null ? 0xffffffff : getLightmapValue(this.gm.world, brightPos, Facing.UP);
IBakedModel model = this.manager.getModelForState(state);
Block block = state.getBlock();
GL46.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
@ -3365,7 +3365,7 @@ public class Renderer {
if(!list.isEmpty()) {
BlockPos bpos = pos.offset(side);
if(!checkSides || block.canRender(world, bpos, side)) {
int light = getLightmapValue(world, bpos);
int light = getLightmapValue(world, bpos, side);
this.renderModelStandardQuads(world, block, pos, side, light, false, rb, list, bounds);
rendered = true;
}