-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (51 loc) · 1.74 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>play3d</title>
<link rel="stylesheet" type="text/css" media="screen" href="play3d.css">
<script src="lib/ace/ace.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="tools">
<button id="botonCompilar" title="Run (ALT+ENTER)">▶ Run</button>
<div id="menus">
<ul>
<li>Geometry
<ul>
<li><button id="botonGeometryBox">Box</button></li>
<li><button id="botonGeometrySphere">Sphere</button></li>
<li class="sub">Other
<ul>
<li><button id="botonGeometryCylinder">Cylinder</button></li>
<li><button id="botonGeometryCone">Cone</button></li>
</ul>
</li>
</ul>
</li>
<li>Material
<ul>
<li><button id="botonMaterialSimple">Simple</button></li>
<li><button id="botonMaterialMeshNormal">MeshNormal</button></li>
</ul>
</li>
</ul>
</div>
</div>
<pre id="editor">scene.add( new THREE.GridHelper( 50, 50 ));
var geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 );
var material = new THREE.MeshNormalMaterial();
var mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
</pre>
<div id="errors"></div>
<iframe id="viewport" sandbox="allow-scripts" seamless="seamless"></iframe>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.session.setMode("ace/mode/javascript");
</script>
<script src="play3d.js" type="text/javascript"></script>
</body>
</html>