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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>KTX2 Texture Load</title>
  6. <!-- Import maps polyfill -->
  7. <!-- Remove this when import maps will be widely supported -->
  8. <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
  9. <script type="importmap">
  10. {
  11. "imports": {
  12. "threepipe": "./../../dist/index.mjs"
  13. }
  14. }
  15. </script>
  16. <style id="example-style">
  17. html, body, #canvas-container, #mcanvas {
  18. width: 100%;
  19. height: 100%;
  20. margin: 0;
  21. overflow: hidden;
  22. }
  23. p{
  24. position: absolute;
  25. top: 5%;
  26. left: 50%;
  27. transform: translate(-50%, -50%);
  28. font-size: 1.25em;
  29. color: #8cd55b;
  30. font-family: sans-serif;
  31. pointer-events: none;
  32. }
  33. </style>
  34. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  35. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  36. </head>
  37. <body>
  38. <div id="canvas-container">
  39. <p>Drop .ktx2 files here</p>
  40. <canvas id="mcanvas"></canvas>
  41. </div>
  42. </body>