- 451
- 13
- 34
Привет всем, как можно с помощью GL11 сгладить текстуру?
-выглядит так
Заранее благодарен
Java:
GL11.glPushMatrix();
//this.drawGradientRect(0, 0, this.width, this.height, -2130706433, 16777215);
//this.drawGradientRect(0, 0, this.width, this.height, 0, Integer.MIN_VALUE);
GL11.glEnable(GL11.GL_LINE_SMOOTH);
GL11.glEnable(GL11.GL_POLYGON_SMOOTH);
GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST);
GL11.glHint(GL11.GL_POLYGON_SMOOTH_HINT, GL11.GL_NICEST);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.9f);
this.mc.getTextureManager().bindTexture(_Resources.bckg);
int nullW = 350, nullH = 220;
Gui.drawModalRectWithCustomSizedTexture(this.width / 2 - nullW / 2, this.height / 2 - nullH / 2, 0.0F, 0.0F, nullW, nullH, 350, 220);
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopMatrix();
Заранее благодарен