freealise commited on
Commit
5f9ff8f
·
verified ·
1 Parent(s): 9824993

Rename TriangleWithoutIndices.gltf to index.html

Browse files
Files changed (2) hide show
  1. TriangleWithoutIndices.gltf +0 -54
  2. index.html +37 -0
TriangleWithoutIndices.gltf DELETED
@@ -1,54 +0,0 @@
1
- {
2
- "scene" : 0,
3
- "scenes" : [
4
- {
5
- "nodes" : [ 0 ]
6
- }
7
- ],
8
-
9
- "nodes" : [
10
- {
11
- "mesh" : 0
12
- }
13
- ],
14
-
15
- "meshes" : [
16
- {
17
- "primitives" : [ {
18
- "attributes" : {
19
- "POSITION" : 0
20
- }
21
- } ]
22
- }
23
- ],
24
-
25
- "buffers" : [
26
- {
27
- "uri" : "data:application/octet-stream;base64,AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAA",
28
- "byteLength" : 36
29
- }
30
- ],
31
- "bufferViews" : [
32
- {
33
- "buffer" : 0,
34
- "byteOffset" : 0,
35
- "byteLength" : 36,
36
- "target" : 34962
37
- }
38
- ],
39
- "accessors" : [
40
- {
41
- "bufferView" : 0,
42
- "byteOffset" : 0,
43
- "componentType" : 5126,
44
- "count" : 3,
45
- "type" : "VEC3",
46
- "max" : [ 1.0, 1.0, 0.0 ],
47
- "min" : [ 0.0, 0.0, 0.0 ]
48
- }
49
- ],
50
-
51
- "asset" : {
52
- "version" : "2.0"
53
- }
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.html ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>WebGL Demo</title>
6
+ <style>
7
+ canvas {
8
+ width:320px;
9
+ height:240px;
10
+ user-select:none;
11
+ touch-action:none;
12
+ }
13
+ body {
14
+ margin:0;
15
+ padding:0;
16
+ background-color:#808080;
17
+ text-align:center;
18
+ }
19
+ </style>
20
+ <script
21
+ src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js"
22
+ integrity="sha512-zhHQR0/H5SEBL3Wn6yYSaTTZej12z0hVZKOv3TwCUXT1z5qeqGcXJLLrbERYRScEDDpYIJhPC1fk31gqR783iQ=="
23
+ crossorigin="anonymous"
24
+ defer
25
+ ></script>
26
+ <script src="https://freeali.se/freealise/transparent_video/webgl-demo.js" type="module"></script>
27
+ </head>
28
+
29
+ <body oncontextmenu="return false;">
30
+ <canvas id="glcanvas" width="1024" height="768"></canvas><br/>
31
+ pan<input type="range" id="pan" min="-0.05" max="0.05" value="0.0" step="0.001"/>
32
+ fov<input type="range" id="fov" min="5" max="90" value="45" step="1"/><br/>
33
+ time<input type="range" id="time" min="0" max="60" value="0" step="1"/>
34
+ <input type='button' id="snapshot" title="Snapshot" value="⬚"/>
35
+ <input type='button' id='record' title='Record' value='●'/>
36
+ </body>
37
+ </html>