aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/org/jdesktop/j3d/examples/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/org/jdesktop/j3d/examples/background')
-rw-r--r--src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java b/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java
index bd4f7ca..e05bac3 100644
--- a/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java
+++ b/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java
@@ -83,15 +83,18 @@ public class BackgroundGeometry extends javax.swing.JFrame {
bg.setApplicationBounds(bounds);
BranchGroup backGeoBranch = new BranchGroup();
Sphere sphereObj = new Sphere(1.0f, Sphere.GENERATE_NORMALS |
- Sphere.GENERATE_NORMALS_INWARD |
- Sphere.GENERATE_TEXTURE_COORDS, 45);
+ Sphere.GENERATE_NORMALS_INWARD |
+ Sphere.GENERATE_TEXTURE_COORDS |
+ Sphere.GENERATE_TEXTURE_COORDS_Y_UP, 45);
Appearance backgroundApp = sphereObj.getAppearance();
backGeoBranch.addChild(sphereObj);
bg.setGeometry(backGeoBranch);
objTrans.addChild(bg);
TextureLoader tex = new TextureLoader(bgImage,
- new String("RGB"), this);
+ new String("RGB"),
+ TextureLoader.BY_REFERENCE | TextureLoader.Y_UP,
+ this);
if (tex != null)
backgroundApp.setTexture(tex.getTexture());