use of com.ardor3d.scenegraph.shape.Dome in project energy3d by concord-consortium.
the class SceneManager method createSky.
private Mesh createSky() {
final Dome sky = new Dome("Sky", 100, 100, SKY_RADIUS);
sky.setRotation(new Matrix3().fromAngles(Math.PI / 2, 0, 0));
sky.getSceneHints().setLightCombineMode(LightCombineMode.Off);
sky.getSceneHints().setAllPickingHints(false);
sky.updateModelBound();
sky.updateWorldBound(true);
final TextureState ts = new TextureState();
ts.setTexture(TextureManager.load("daysky.jpg", Texture.MinificationFilter.Trilinear, TextureStoreFormat.GuessNoCompressedFormat, true));
sky.setRenderState(ts);
return sky;
}
Aggregations