experimental new rendering 3
This commit is contained in:
parent
7ae19e187e
commit
225377bb8c
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue