Index.cshtml 531 B

1234567891011121314
  1. @{
  2. ViewBag.Title = "Our Own Sandbox";
  3. ViewBag.BabylonJSFolder = "..\\..\\..\\";
  4. }
  5. <script type="text/javascript">
  6. $(document).ready(function () {
  7. var filesInput = new BABYLON.FilesInput(OURBABYLON.engine, OURBABYLON.currentScene, OURBABYLON.canvas, function (sceneFile, babylonScene) {
  8. OURBABYLON.currentScene = babylonScene;
  9. //babylonScene.activeCamera.attachControl(OURBABYLON.canvas);
  10. });
  11. filesInput.monitorElementForDragNDrop(OURBABYLON.canvas);
  12. });
  13. </script>