debug.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Babylon.js Playground</title>
  5. <script src="https://babylonjs.azurewebsites.net/poly2tri.js"></script>
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
  7. <!--x-tag-->
  8. <script src="xtag.min.js"></script>
  9. <script src="splitbox.js"></script>
  10. <link href="splitbox.css" rel="stylesheet" />
  11. <!-- jszip -->
  12. <script src="jszip.min.js"></script>
  13. <script src="fileSaver.js"></script>
  14. <!-- Bootstrap -->
  15. <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
  16. <script src="node_modules/monaco-editor/min/vs/loader.js"></script>
  17. <!-- Babylon.js -->
  18. <script src="https://babylonjs.azurewebsites.net/cannon.js"></script>
  19. <script src="https://babylonjs.azurewebsites.net/Oimo.js"></script>
  20. <!--<script src="../babylon.js"></script>-->
  21. <script src="https://babylonjs.azurewebsites.net/babylon.max.js"></script>
  22. <script src="https://babylonjs.azurewebsites.net/babylon.canvas2d.max.js"></script>
  23. <script src="https://babylonjs.azurewebsites.net/lib/babylon.fireMaterial.min.js"></script>
  24. <script src="https://babylonjs.azurewebsites.net/lib/babylon.waterMaterial.min.js"></script>
  25. <script src="https://babylonjs.azurewebsites.net/lib/babylon.lavaMaterial.min.js"></script>
  26. <script src="https://babylonjs.azurewebsites.net/lib/babylon.normalMaterial.min.js"></script>
  27. <script src="https://babylonjs.azurewebsites.net/lib/babylon.skyMaterial.min.js"></script>
  28. <script src="https://babylonjs.azurewebsites.net/lib/babylon.triPlanarMaterial.min.js"></script>
  29. <script src="https://babylonjs.azurewebsites.net/lib/babylon.terrainMaterial.min.js"></script>
  30. <script src="https://babylonjs.azurewebsites.net/lib/babylon.gradientMaterial.min.js"></script>
  31. <script src="https://babylonjs.azurewebsites.net/lib/babylon.furMaterial.min.js"></script>
  32. <script src="https://babylonjs.azurewebsites.net/lib/babylon.gridMaterial.min.js"></script>
  33. <script src="https://babylonjs.azurewebsites.net/lib/babylon.brickProceduralTexture.min.js"></script>
  34. <script src="https://babylonjs.azurewebsites.net/lib/babylon.cloudProceduralTexture.min.js"></script>
  35. <script src="https://babylonjs.azurewebsites.net/lib/babylon.fireProceduralTexture.min.js"></script>
  36. <script src="https://babylonjs.azurewebsites.net/lib/babylon.grassProceduralTexture.min.js"></script>
  37. <script src="https://babylonjs.azurewebsites.net/lib/babylon.marbleProceduralTexture.min.js"></script>
  38. <script src="https://babylonjs.azurewebsites.net/lib/babylon.roadProceduralTexture.min.js"></script>
  39. <script src="https://babylonjs.azurewebsites.net/lib/babylon.starfieldProceduralTexture.min.js"></script>
  40. <script src="https://babylonjs.azurewebsites.net/lib/babylon.woodProceduralTexture.min.js"></script>
  41. <script src="https://babylonjs.azurewebsites.net/lib/babylon.asciiArtPostProcess.min.js"></script>
  42. <script src="https://babylonjs.azurewebsites.net/lib/babylon.digitalRainPostProcess.min.js"></script>
  43. <script src="https://babylonjs.azurewebsites.net/lib/babylon.glTFFileLoader.js"></script>
  44. <script src="https://babylonjs.azurewebsites.net/lib/babylon.objFileLoader.js"></script>
  45. <script src="https://babylonjs.azurewebsites.net/lib/babylon.stlFileLoader.js"></script>
  46. <link href="index.css" rel="stylesheet" />
  47. </head>
  48. <body>
  49. <div class="navbar navbar-inverse navbar-fixed-top">
  50. <div class="navbar-inner" id="topbar">
  51. <a class="brand largeOnly" href="#" id="mainTitle">Babylon.js Playground</a>
  52. <div class="btn-group">
  53. <button class="btn" id="runButton">Run</button>
  54. <button class="btn" id="saveButton">Save</button>
  55. <button class="btn desktopOnly" id="zipButton">Get .zip</button>
  56. <button class="btn desktopOnly" id="newButton">New</button>
  57. <button class="btn desktopOnly" id="clearButton">Clear</button>
  58. </div>
  59. <div class="btn-group desktopOnly">
  60. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  61. <span id="currentFontSize">Font: 12</span>
  62. <span class="caret"></span>
  63. </a>
  64. <ul class="dropdown-menu" id="sizeList">
  65. <li><a href="#" onclick="setFontSize(12);">12</a></li>
  66. <li><a href="#" onclick="setFontSize(14);">14</a></li>
  67. <li><a href="#" onclick="setFontSize(16);">16</a></li>
  68. <li><a href="#" onclick="setFontSize(18);">18</a></li>
  69. <li><a href="#" onclick="setFontSize(20);">20</a></li>
  70. <li><a href="#" onclick="setFontSize(22);">22</a></li>
  71. </ul>
  72. </div>
  73. <div class="btn-group">
  74. <label class="btn btn-sm active">
  75. <input type="checkbox" autocomplete="off" id='safemodeToggle' style="margin-top:-0.1em;margin-right:4px">Safe Mode
  76. </label>
  77. <button class="btn btn-sm" id="editorButton">-Editor</button>
  78. <button class="btn btn-sm" id="debugButton">+Debug layer</button>
  79. </div>
  80. <div class="btn-group pull-right">
  81. <button class="btn" id="fullscreenButton">Fullscreen</button>
  82. </div>
  83. <div class="btn-group pull-right">
  84. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  85. <span id="currentScript">Predefined scripts</span>
  86. <span class="caret"></span>
  87. </a>
  88. <ul class="dropdown-menu" id="scriptsList"></ul>
  89. </div>
  90. </div>
  91. </div>
  92. <x-splitbox>
  93. <div id="jsEditor"></div>
  94. <div splitter></div>
  95. <div id="canvasZone">
  96. <canvas id="renderCanvas"></canvas>
  97. </div>
  98. </x-splitbox>
  99. <span class="label" id="fpsLabel">FPS</span>
  100. <div id="errorZone">
  101. </div>
  102. <div class="navbar navbar-inverse navbar-fixed-bottom">
  103. <div class="navbar-inner">
  104. <ul class="nav pull-left">
  105. <li id="statusBar"></li>
  106. </ul>
  107. <ul class="nav pull-right">
  108. <li><a href="http://www.html5gamedevs.com/forum/16-babylonjs/">Forum</a></li>
  109. <li><a href="https://babylonjs.azurewebsites.net/sandbox">Sandbox</a></li>
  110. <li><a href="https://github.com/BabylonJS/Babylon.js/wiki">Wiki</a></li>
  111. <li><a href="http://www.sokrate.fr/documentation/babylonjs/index.html">Documentation</a></li>
  112. </ul>
  113. </div>
  114. </div>
  115. <script src="https://code.jquery.com/jquery.js"></script>
  116. <script src="bootstrap/js/bootstrap.min.js"></script>
  117. <script src="index.js"></script>
  118. </body>
  119. </html>