PDA

View Full Version : Alpha Value



Andooo
02-10-2018, 10:12 AM
Hello
It should be rendered like this...
2662
but it doesn't work:
2663

here the init code:

glEnable(GL_DEPTH_TEST);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
GLU.gluPerspective(45, (float) Display.getWidth() / (float) Display.getHeight(), 0.05f, 1000f);
glMatrixMode(GL_MODELVIEW);

pls help