瀏覽代碼

Examples: Clean up. (#24686)

Michael Herzog 2 年之前
父節點
當前提交
7fe4cf0718
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      examples/webgl_worker_offscreencanvas.html

+ 9 - 0
examples/webgl_worker_offscreencanvas.html

@@ -68,6 +68,15 @@
 		<!-- Remove this when import maps will be widely supported -->
 		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
 
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js",
+					"three/addons/": "./jsm/"
+				}
+			}
+		</script>
+
 		<script type="module">
 
 			import initJank from 'three/addons/offscreen/jank.js';