I'm having a tough time getting alpha transparency on strings to work.
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_BLEND);
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
mc.fontRenderer.drawStringWithShadow("Hello, world!", x, y, color + (alpha << 24));
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopMatrix();
The alpha value is between 0 and 255, inclusively, but it refuses to render on certain numbers. Is there a different way of accomplishing this, or is my bitwise calculation off? I can't find help support for GUI text transparency anywhere.
Thanks in advance.