Package javara.world.environment

Examples of javara.world.environment.Sky


    this.rootNode = rootNode;
    this.physicsSpace = physicsSpace;
    this.assetManager = assetManager;

    this.sky = new Sky(assetManager, DEFAULT_SKY_COLOR, DEFAULT_HORIZON_COLOR, DEFAULT_HORIZON_SCALE, DEFAULT_GROUND_COLOR);
    this.ground = new Ground(assetManager, 1000.0f, DEFAULT_GROUND_COLOR);

    addWorldObject(this.sky);
    addWorldObject(this.ground);
View Full Code Here


          horizonScale = Float.parseFloat(attrs.getValue("horizonScale"));

        if (ambientColor != null)
          world.setAmbientColor(ambientColor);

        Sky sky = world.getSky();
        if (skyColor != null)
          sky.setColor(skyColor);
        if (horizonColor != null)
          sky.setHorizonColor(horizonColor);
        if (horizonScale >= 0)
          sky.setHorizonScale(horizonScale);
      }
      else if (localName.equalsIgnoreCase("ground")) {
        ColorRGBA groundColor = (attrs.getValue("color") != null) ? parseColor(attrs.getValue("color")) : null;
        Ground ground = world.getGround();
        Sky sky = world.getSky();

        if (groundColor != null) {
          ground.setColor(groundColor);
          sky.setGroundColor(groundColor);
        }
      }
      else if (localName.equalsIgnoreCase("celestial")) {
        ColorRGBA color;
        float azimuth = 90.0f, elevation = 45.0f, intensity = 0.4f, size = 1.0f;
View Full Code Here

TOP

Related Classes of javara.world.environment.Sky

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.