This reverts back to the old way of extending the vertex format with the necessary vertex element for lightmap data, if fullbright quads are enabled. Instead of then enabling the extended vertex format for Optifine, it is disabled if Optifine is detected.
Since the root cause is actually that the Vanilla lighting pipeline doesn't support such Vertex Formats, we disable it also if the Forge lighting pipeline is disabled. This also relates to #2489.
This commit is contained in:
committed by
shartte
parent
0bbf898709
commit
59544993bd
@@ -35,6 +35,8 @@ import net.minecraft.client.renderer.vertex.VertexFormatElement;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraftforge.client.model.pipeline.UnpackedBakedQuad;
|
||||
|
||||
import appeng.client.render.VertexFormats;
|
||||
|
||||
|
||||
/**
|
||||
* Builds the quads for a cube.
|
||||
@@ -84,7 +86,7 @@ public class CubeBuilder
|
||||
if( renderFullBright )
|
||||
{
|
||||
savedFormat = format;
|
||||
format = DefaultVertexFormats.BLOCK;
|
||||
format = VertexFormats.getFormatWithLightMap( format );
|
||||
}
|
||||
|
||||
for( EnumFacing face : drawFaces )
|
||||
|
||||
Reference in New Issue
Block a user