domExample.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 default-viewer="true">
  17. <model url="https://ugcorigin.s-microsoft.com/12/2e77b8e3-0000-0000-7a48-6505db2f0ef9/952/1508427934473.gltf" title="The Bus!"
  18. subtitle="Remix3D" thumbnail="http://d33wubrfki0l68.cloudfront.net/7e08139ddee0ec38005f4232346c7f7386831300/fd934/githubuniverse/remix3d.png">
  19. </model>
  20. <camera>
  21. <behaviors array="true">
  22. <behavior type="0"></behavior>
  23. </behaviors>
  24. </camera>
  25. <lights array="true">
  26. <light type="1" shadow-enabled="true" position.y="0.5" direction.y="-1" intensity="4.5">
  27. <shadow-config use-blur-exponential-shadow-map="true" use-kernel-blur="true" blur-kernel="64" blur-scale="4">
  28. </shadow-config>
  29. </light>
  30. </lights>
  31. </babylon>
  32. <script src="viewer.js"></script>
  33. </body>
  34. </html>
  35. <html>
  36. </html>