Skip to content

Commit b0985c8

Browse files
committed
add empty tsl example
1 parent 95fd627 commit b0985c8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

examples/showcase/tsl/index.html

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>TSL • A-Frame</title>
6+
<meta name="description" content="TSL • A-Frame" />
7+
<script type="importmap">
8+
{
9+
"imports": {
10+
"aframe": "../../../dist/aframe-master.module.min.js",
11+
"three": "../../../super-three-package/build/three.webgpu.js",
12+
"three/webgpu": "../../../super-three-package/build/three.webgpu.js",
13+
"three/tsl": "../../../super-three-package/build/three.tsl.js",
14+
"three/addons/": "../../../super-three-package/examples/jsm/",
15+
"aframe-extras/controls": "https://cdn.jsdelivr.net/gh/c-frame/[email protected]/dist/aframe-extras.controls.min.js"
16+
}
17+
}
18+
</script>
19+
<script type="module">
20+
import AFRAME from "aframe";
21+
import "aframe-extras/controls";
22+
// import { } from "three/tsl";
23+
</script>
24+
</head>
25+
<body>
26+
<a-scene background="color: #ECECEC">
27+
<!--
28+
<a-entity
29+
position="0 0 -2"
30+
></a-entity>
31+
-->
32+
33+
<a-plane
34+
position="0 0 -2"
35+
rotation="-90 0 0"
36+
width="4"
37+
height="4"
38+
color="#7BC8A4"
39+
></a-plane>
40+
41+
<a-entity
42+
position="0 0 1"
43+
id="rig"
44+
movement-controls="controls: gamepad,keyboard,nipple"
45+
nipple-controls="mode: static"
46+
>
47+
<a-entity camera position="0 1.6 0" look-controls></a-entity>
48+
</a-entity>
49+
</a-scene>
50+
</body>
51+
</html>

0 commit comments

Comments
 (0)