domExample.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 - DOM usage</title>
  8. <style>
  9. babylon {
  10. width: 800px;
  11. height: 500px;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <babylon extends="minimal" scene.default-camera="false">
  17. <model url="https://playground.babylonjs.com/scenes/BoomBox.glb" title="GLB Model" subtitle="BabylonJS">
  18. </model>
  19. <camera>
  20. <behaviors>
  21. <auto-rotate type="0"></auto-rotate>
  22. </behaviors>
  23. </camera>
  24. <lights>
  25. <light1 type="1" shadow-enabled="true" position.y="0.5" direction.y="-1" intensity="4.5">
  26. <shadow-config use-blur-exponential-shadow-map="true" use-kernel-blur="true" blur-kernel="64" blur-scale="4">
  27. </shadow-config>
  28. </light1>
  29. </lights>
  30. </babylon>
  31. <script src="viewer.js"></script>
  32. </body>
  33. </html>
  34. <html>
  35. </html>