/** * Creates a new skybox. The size of the skybox and name is specified here. By default, no textures are set. * * @param name * The name of the skybox. * @param xExtent * The x size of the skybox in both directions from the center. * @param yExtent * The y size of the skybox in both directions from the center. * @param zExtent * The z size of the skybox in both directions from the center. */ public Skybox(final String name, final float xExtent, final float yExtent, final float zExtent) { super(name); _xExtent = xExtent; _yExtent = yExtent; _zExtent = zExtent; initialize(); }
getSceneHints().setLightCombineMode(LightCombineMode.Off); getSceneHints().setTextureCombineMode(TextureCombineMode.Replace); setRenderState(zbuff); setRenderState(fs); getSceneHints().setCullHint(CullHint.Never); attachChild(_skyboxQuads[i]);
/** * Set the texture to be displayed on the given face of the skybox. Replaces any existing texture on that face. * * @param face * the face to set * @param texture * The texture for that side to assume. * @throws IllegalArgumentException * if face is null. */ public void setTexture(final Face face, final Texture texture) { if (face == null) { throw new IllegalArgumentException("Face can not be null."); } _skyboxQuads[face.ordinal()].clearRenderState(RenderState.StateType.Texture); setTexture(face, texture, 0); }
getSceneHints().setLightCombineMode(LightCombineMode.Off); getSceneHints().setTextureCombineMode(TextureCombineMode.Replace); setRenderState(zbuff); getSceneHints().setCullHint(CullHint.Never); attachChild(_skyboxQuads[i]);
/** * Set the texture to be displayed on the given face of the skybox. Replaces any existing texture on that face. * * @param face * the face to set * @param texture * The texture for that side to assume. * @throws IllegalArgumentException * if face is null. */ public void setTexture(final Face face, final Texture texture) { if (face == null) { throw new IllegalArgumentException("Face can not be null."); } _skyboxQuads[face.ordinal()].clearRenderState(RenderState.StateType.Texture); setTexture(face, texture, 0); }
/** * Creates a new skybox. The size of the skybox and name is specified here. By default, no textures are set. * * @param name * The name of the skybox. * @param xExtent * The x size of the skybox in both directions from the center. * @param yExtent * The y size of the skybox in both directions from the center. * @param zExtent * The z size of the skybox in both directions from the center. */ public Skybox(final String name, final float xExtent, final float yExtent, final float zExtent) { super(name); _xExtent = xExtent; _yExtent = yExtent; _zExtent = zExtent; initialize(); }