threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Unreal Bloom Pass</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- Import maps polyfill -->
  8. <!-- Remove this when import maps will be widely supported -->
  9. <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
  10. <script type="importmap">
  11. {
  12. "imports": {
  13. "three": "./../../dist/index.mjs",
  14. "three/examples/jsm/postprocessing/UnrealBloomPass.js": "https://cdn.jsdelivr.net/gh/repalash/three.js-modded/examples/jsm/postprocessing/UnrealBloomPass.js",
  15. "threepipe": "./../../dist/index.mjs",
  16. "@threepipe/webgi-plugins": "https://unpkg.com/@threepipe/webgi-plugins@0.2.0/dist/index.mjs",
  17. "@threepipe/plugin-tweakpane": "./../../plugins/tweakpane/dist/index.mjs"
  18. }
  19. }
  20. </script>
  21. <style id="example-style">
  22. html, body, #canvas-container, #mcanvas {
  23. width: 100%;
  24. height: 100%;
  25. margin: 0;
  26. overflow: hidden;
  27. }
  28. </style>
  29. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  30. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  31. </head>
  32. <body>
  33. <div id="canvas-container">
  34. <canvas id="mcanvas"></canvas>
  35. </div>
  36. </body>