-
Notifications
You must be signed in to change notification settings - Fork 67
/
Hello-WebVR.html
86 lines (71 loc) · 1.73 KB
/
Hello-WebVR.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<title>Hello, WebVR! - A-Frame</title>
<meta name="description" content="Hello, WebVR! - A-Frame">
<script src="js/aframe-master-v1.3.0.min.js"></script>
</head>
<body>
<a-scene renderer="antialias: true;">
<!-- Default lights: one directional light from top left, one small ambient light.
Adding a light manually will remove the default lighting setup.
Custom light setup:
<a-entity
light="type: ambient; color: #666666;"
</a-entity>
<a-entity
light="type: directional; color: #FFFFFF; castShadow: true;"
position="-1 4 0">
</a-entity>
-->
<a-sky
color = "#001337">
</a-sky>
<a-plane
width="100" height="100"
position=" 0.00 0.00 0.00"
rotation="-90 0 0"
color="#666666"
shadow="cast: false; receive: true">
</a-plane>
<a-torus-knot
p="2" q="3" radius="0.5" radius-tubular="0.1"
position = "-2.5 1.5 -4"
color="#CC3333"
shadow = "cast: true; receive: true">
</a-torus-knot>
<a-box
width = "2" height = "1" depth = "1"
position = "-1 0.5 -3"
rotation = "0 45 0"
color = "#FF8800"
shadow = "cast: true; receive: true">
</a-box>
<a-sphere
radius = "1.25"
position = "0 1.25 -5"
color = "#DDBB00"
shadow = "cast: true; receive: true">
</a-sphere>
<a-cylinder
radius = "0.5" height = "1.5"
position = " 1 0.75 -3"
color = "#008800"
shadow = "cast: true; receive: true">
</a-cylinder>
<a-cone
radius-bottom = "1" radius-top = "0" height = "2"
position = "3 1 -4"
color = "#4444CC"
shadow = "cast: true; receive: true">
</a-cone>
<a-torus
radius="0.5" radius-tubular="0.1"
position = "2 3 -4"
rotation = "30 -20 0"
color="#8800FF"
shadow = "cast: true; receive: true">
</a-torus>
</a-scene>
</body>
</html>