aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-02-10 21:37:12 +0000
committerkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-02-10 21:37:12 +0000
commit2a9122cb0b4dd5ee4b2445ff6079caea6c970de6 (patch)
treef16cf1813453f70d99eec4b4459fb1a3758f081c
parentc003071e8e37fc60595aeb20a0e5cf0be4c4da3a (diff)
Fixed typo in mipmap code; set mipmap mode (trilinear filtering) as default
-rw-r--r--src/classes/org/jdesktop/j3d/examples/texture/TextureImageNPOT.java7
1 files 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);