From 2a9122cb0b4dd5ee4b2445ff6079caea6c970de6 Mon Sep 17 00:00:00 2001 From: kcr Date: Fri, 10 Feb 2006 21:37:12 +0000 Subject: Fixed typo in mipmap code; set mipmap mode (trilinear filtering) as default --- .../org/jdesktop/j3d/examples/texture/TextureImageNPOT.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/classes/org/jdesktop/j3d/examples/texture/TextureImageNPOT.java b/src/classes/org/jdesktop/j3d/examples/texture/TextureImageNPOT.java index 67b9b9a..6a08fe6 100644 --- a/src/classes/org/jdesktop/j3d/examples/texture/TextureImageNPOT.java +++ b/src/classes/org/jdesktop/j3d/examples/texture/TextureImageNPOT.java @@ -61,7 +61,7 @@ public class TextureImageNPOT extends Applet { private SimpleUniverse u = null; private boolean allowNonPowerOfTwo = true; - private boolean mipmap = false; + private boolean mipmap = true; public BranchGroup createSceneGraph() { // Create the root of the branch graph @@ -95,11 +95,10 @@ public class TextureImageNPOT extends Applet { Texture tex = new TextureLoader(texImage, flags, this).getTexture(); tex.setMagFilter(Texture.BASE_LEVEL_LINEAR); if (mipmap) { - tex.setMipMapMode(Texture.MULTI_LEVEL_MIPMAP); tex.setMinFilter(Texture.MULTI_LEVEL_LINEAR); } else { - tex.setMagFilter(Texture.BASE_LEVEL_LINEAR); - } + tex.setMinFilter(Texture.BASE_LEVEL_LINEAR); + } app.setTexture(tex); TextureAttributes texAttr = new TextureAttributes(); texAttr.setTextureMode(TextureAttributes.MODULATE); -- cgit v1.2.3