Better texture filtering
This commit is contained in:
parent
3c0ad074ef
commit
97b2ad36bd
@ -85,6 +85,9 @@ public class RealisticRenderStrategy extends RenderStrategy {
|
|||||||
tex = getTexture(t);
|
tex = getTexture(t);
|
||||||
}
|
}
|
||||||
if (t != null && tex != null) {
|
if (t != null && tex != null) {
|
||||||
|
gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR_MIPMAP_LINEAR);
|
||||||
|
gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
||||||
|
|
||||||
tex.enable(gl);
|
tex.enable(gl);
|
||||||
tex.bind(gl);
|
tex.bind(gl);
|
||||||
gl.glMatrixMode(GL.GL_TEXTURE);
|
gl.glMatrixMode(GL.GL_TEXTURE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user