So, I've recently made a GUI that contains some itemstack rendering in it (no GuiContainer, I couldn't use that for this case since I didn't want the items to be in a slot). The items render just fine, but the blocks seem to be about 50% to dark. I've tried disabling the lightning with GL11, but that doesn't help. Is there any way I could fix this? (I am probably just derping, but I really cannot find the problem)
Code for ItemStack rendering:
private void drawItemStack(StackWithPos stack, Minecraft mc, boolean remote, int xStart, int yStart)
{
if (stack != null && stack.item != null)
{
GL11.glPushMatrix();
this.zLevel = 50.0F;
this.itemRenderer.zLevel = 50.0F;
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
RenderHelper.enableGUIStandardItemLighting();
GL11.glEnable(GL11.GL_DEPTH_TEST);
if (remote)
{
this.itemRenderer.renderItemAndEffectIntoGUI(this.fontRenderer, mc.renderEngine, stack.item, stack.x + xStart, stack.y + yStart);
}
else
{
this.itemRenderer.renderItemAndEffectIntoGUI(this.fontRenderer, mc.renderEngine, stack.item, stack.x + 100 + xStart, stack.y + yStart + 46);
}
RenderHelper.disableStandardItemLighting();
this.itemRenderer.zLevel = 0.0F;
this.zLevel = 0.0F;
GL11.glPopMatrix();
}
}