-
Notifications
You must be signed in to change notification settings - Fork 55
/
index.html
62 lines (56 loc) · 1.83 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
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<head>
<title>Light and Shadow</title>
<style type="text/css">
canvas {
width: 800px;
height: 600px;
display: block;
/* position: absolute;
top: 50%;
left: 50%;
margin-top: -300px;
margin-left: -400px; */
}
.playerBar {
background-color: #404040;
width: 800px;
height: 24px;
}
#divPlayer {
width: 800px;
display: block;
top: 100px;
}
.playerBarText {
color: white;
}
</style>
</head>
<body>
<div id="divPlayer">
<div class="divcanvas">
<canvas id="canvas"></canvas>
</div>
<div class="playerBar">
<button class="uiButton" id="playResetButton">Time Reset</button>
<span id="playerTime" class="playerBarText" style="padding-left: 30px;">0.00</span>
<span id="playerFramerate" class="playerBarText" style="padding-left: 30px;">0.00 FPS</span>
<span id="playerResolution" class="playerBarText" style="padding-left: 30px;">800 x 600</span>
<span id="playerStatus" class="playerBarText" style="padding-left: 30px;">Program: Initializing...</span>
<button class="uiButton" style="float: right;" id="playPauseButton">PLAY</button>
</div>
<span id="extraInfo"></span>
</div>
<!--
for most samples webgl-utils only provides shader compiling/linking and
canvas resizing because why clutter the examples with code that's the same in every sample.
See https://webglfundamentals.org/webgl/lessons/webgl-boilerplate.html
and https://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
for webgl-utils, m3, m4, and webgl-lessons-ui.
-->
<script src="./webgl-utils.js"></script>
<script src="./vertex-shader.js"></script>
<script src="./fragment-shader.js"></script>
<script src="./render-main.js"></script>
</body>