ufoExample.html 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>BabylonJS Viewer - UFO</title>
  8. <style>
  9. babylon,
  10. #viewport {
  11. /*max-width: 900px;
  12. max-height: 600px;*/
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <babylon extends="default, shadowDirectionalLight, environmentMap" templates.nav-bar.params.disable-on-fullscreen="true">
  18. <scene glow="true">
  19. </scene>
  20. <lab>
  21. <environment-main-color r="0.5" g="0.2" b="0.2"></environment-main-color>
  22. </lab>
  23. <model url="https://models.babylonjs.com/ufo.glb">
  24. <animation auto-start="true"></animation>
  25. </model>
  26. <camera beta="0.8"></camera>
  27. </babylon>
  28. <script src="viewer.js"></script>
  29. </body>
  30. </html>