if(map == null || activeName == null)
return;
if(!map.containsKey("default") && activeName.equals("default")) {
map.put("default", new SharedSkybox("default",
"Default Skybox",
"wla://defaultenvironment/skybox1/1.jpg",
"wla://defaultenvironment/skybox1/3.jpg",
"wla://defaultenvironment/skybox1/2.jpg",
"wla://defaultenvironment/skybox1/4.jpg",
"wla://defaultenvironment/skybox1/6.jpg",
"wla://defaultenvironment/skybox1/5.jpg"));
return;
}
if(!map.containsKey(activeName)) {
LOGGER.warning("Skybox map does not contain: "+activeName+""
+ ". Defaulting.");
SharedSkybox defaultSky = (SharedSkybox)map.get("default");
updateSkybox(defaultSky.getNorth(),
defaultSky.getSouth(),
defaultSky.getEast(),
defaultSky.getWest(),
defaultSky.getUp(),
defaultSky.getDown());
} else {
LOGGER.fine("Activating skybox: "+activeName);
SharedSkybox ssbox = (SharedSkybox)map.get(activeName);
updateSkybox(ssbox.getNorth(),
ssbox.getSouth(),
ssbox.getEast(),
ssbox.getWest(),
ssbox.getUp(),
ssbox.getDown());
}
}