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;