Fix emissive items not working
This commit is contained in:
parent
31da9a4878
commit
241db39cea
|
@ -687,7 +687,7 @@ public class ForgeHooksClient
|
||||||
// Clean up render state if necessary
|
// Clean up render state if necessary
|
||||||
if (hasLighting)
|
if (hasLighting)
|
||||||
{
|
{
|
||||||
GLX.glMultiTexCoord2f(GLX.GL_TEXTURE0, GLX.lastBrightnessX, GLX.lastBrightnessY);
|
GLX.glMultiTexCoord2f(GLX.GL_TEXTURE1, GLX.lastBrightnessX, GLX.lastBrightnessY);
|
||||||
GlStateManager.enableLighting();
|
GlStateManager.enableLighting();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -717,7 +717,7 @@ public class ForgeHooksClient
|
||||||
if (updateLighting)
|
if (updateLighting)
|
||||||
{
|
{
|
||||||
// Force lightmap coords to simulate synthetic lighting
|
// Force lightmap coords to simulate synthetic lighting
|
||||||
GLX.glMultiTexCoord2f(GLX.GL_TEXTURE0, Math.max(bl, lastBl), Math.max(sl, lastSl));
|
GLX.glMultiTexCoord2f(GLX.GL_TEXTURE1, Math.max(bl, lastBl), Math.max(sl, lastSl));
|
||||||
}
|
}
|
||||||
|
|
||||||
ri.renderQuads(bufferbuilder, segment, baseColor, stack);
|
ri.renderQuads(bufferbuilder, segment, baseColor, stack);
|
||||||
|
|
Loading…
Reference in New Issue