Update index.html
Browse files- index.html +6 -4
index.html
CHANGED
@@ -4,17 +4,18 @@
|
|
4 |
<meta charset="utf-8">
|
5 |
<title>3D Flight Demo</title>
|
6 |
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
|
|
|
7 |
</head>
|
8 |
<body>
|
9 |
<a-scene>
|
10 |
<a-assets>
|
11 |
<img id="skyTexture" src="https://cdn.aframe.io/a-painter/images/sky.jpg">
|
12 |
-
<img id="terrainTexture" src="https://cdn.aframe.io/a-painter/images/terrain.jpg">
|
13 |
<img id="aircraftTexture" src="https://cdn.aframe.io/a-painter/images/brushes/fur.jpg">
|
14 |
</a-assets>
|
15 |
-
<a-sky
|
16 |
-
<a-
|
17 |
-
<a-entity id="aircraft" position="0 2 -5" rotation="0 0 0" geometry="primitive: box; height: 0.5; width: 1.5; depth: 2" material="src: #aircraftTexture"></a-entity>
|
|
|
18 |
<a-camera>
|
19 |
<a-cursor></a-cursor>
|
20 |
</a-camera>
|
@@ -50,3 +51,4 @@
|
|
50 |
</script>
|
51 |
</body>
|
52 |
</html>
|
|
|
|
4 |
<meta charset="utf-8">
|
5 |
<title>3D Flight Demo</title>
|
6 |
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
|
7 |
+
<script src="https://raw.githack.com/IdeaSpaceVR/aframe-noise/master/dist/aframe-noise.js"></script>
|
8 |
</head>
|
9 |
<body>
|
10 |
<a-scene>
|
11 |
<a-assets>
|
12 |
<img id="skyTexture" src="https://cdn.aframe.io/a-painter/images/sky.jpg">
|
|
|
13 |
<img id="aircraftTexture" src="https://cdn.aframe.io/a-painter/images/brushes/fur.jpg">
|
14 |
</a-assets>
|
15 |
+
<a-sky material="shader: flat; src: #skyTexture"></a-sky>
|
16 |
+
<a-entity noise="speed: 0.5; scale: 10 10 10; amplitude: 5; octaves: 5;" geometry="primitive: plane; height: 100; width: 100;" material="shader: standard; src: https://cdn.aframe.io/a-painter/images/terrain.jpg; roughness: 1;"></a-entity>
|
17 |
+
<a-entity id="aircraft" position="0 2 -5" rotation="0 0 0" geometry="primitive: box; height: 0.5; width: 1.5; depth: 2" material="src: #aircraftTexture" shadow="cast: true; receive: false;"></a-entity>
|
18 |
+
<a-light type="directional" color="#ffffff" intensity="0.5" position="0 10 -10" shadow="cast: true; receive: true;"></a-light>
|
19 |
<a-camera>
|
20 |
<a-cursor></a-cursor>
|
21 |
</a-camera>
|
|
|
51 |
</script>
|
52 |
</body>
|
53 |
</html>
|
54 |
+
|