const skycolor = 0xffffcc;
const startRadius = 1000;
const maxRadius = startRadius * 10;
const SKYBOX_ARRAY = [
"/uploads/goryacn2/posx.jpg",
"/uploads/goryacn2/negx.jpg",
"/uploads/goryacn2/posy.jpg",
"/uploads/goryacn2/negy.jpg",
"/uploads/goryacn2/]posz.jpg",
"/uploads/goryacn2/negz.jpg"
];
function initScene(){
ABWorld.scene.background = new THREE.CubeTextureLoader().load ( SKYBOX_ARRAY, function()
{
ABWorld.render();
AB.removeLoading();
AB.runReady = true;
});
}
AB.world.newRun = function()
{
AB.loadingScreen();
AB.runReady = false;
ABWorld.init3d ( startRadius, maxRadius, skycolor );
initScene();
};