Created
July 29, 2018 13:57
-
-
Save flushpot1125/68c400994fb9467f3246d1b3471595e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//省略 | |
//・・・ | |
scene.executeWhenReady(() => { | |
loaded = true; | |
//追加:from | |
var freeCamera = new BABYLON.FreeCamera("FreeCamera", new BABYLON.Vector3(-7.3, 0.6, -15.775), scene); | |
freeCamera.rotation = new BABYLON.Vector3(0, Math.PI, 0); | |
scene.activeCamera = freeCamera; | |
freeCamera.attachControl(divcvs, true); | |
//追加:to | |
// ********************************************************************* // | |
// REQUIRED SECTION 3 - Start Scene Manager Render Loop // | |
// ********************************************************************* // | |
if (scene.manager && scene.manager.start) { | |
scene.manager.start(); | |
} else { | |
engine.runRenderLoop(function () { scene.render(); }); | |
BABYLON.Tools.Warn("Babylon.js running default scene render loop"); | |
} | |
// ********************************************************************* // | |
removeSceneLoader(); | |
//・・ | |
//省略 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment