diff options
author | jada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2007-04-24 18:55:58 +0000 |
---|---|---|
committer | jada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2007-04-24 18:55:58 +0000 |
commit | bc76235e31633f9a23216b663780c4d2878d347b (patch) | |
tree | 8ccadbb1dbf0fc56dae5f69afd3703cad9bbc309 /src/classes/org/jdesktop/j3d/examples/background | |
parent | 2138e316a966fb1675837a037cdd2798bea53239 (diff) |
Use By_REFERENCE and Y_UP options for Texture.
Diffstat (limited to 'src/classes/org/jdesktop/j3d/examples/background')
-rw-r--r-- | src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java | 9 |
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()); |