Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
stable version 1.0 - dem in wireframe - for rando portal
Browse files Browse the repository at this point in the history
  • Loading branch information
celian committed Apr 14, 2014
1 parent c3bf867 commit 2ad1579
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions Rando/Rando.Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,8 @@ function executeWhenReady () {
);
}
console.log("Trek adjusted ! " + (Date.now() - START_TIME) );
setTimeout(texture, 1);
}

// Apply a static texture over the DEM
function texture(){
console.log("Texture loading ..." + (Date.now() - START_TIME) );
// Static texture
if (dem && RANDO.SETTINGS.TEXTURE_URL) {
dem.material.diffuseTexture = new BABYLON.Texture(
RANDO.SETTINGS.TEXTURE_URL,
scene
);
dem.material.wireframe = false;
}
console.log("Texture loaded !" + (Date.now() - START_TIME) );
console.log("All is loaded, launch of render loop !" + (Date.now() - START_TIME) );

// At the end, run the render loop
renderLoop();
}
};
Expand Down

0 comments on commit 2ad1579

Please sign in to comment.