-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (39 loc) · 1.1 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
<!-- index.html styling from Kelvin Abrokwa's https://github.com/kelvinabrokwa/nd-gol/blob/gh-pages/index.html -->
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #000;
margin: 0;
height: 100%;
width: 100%;
}
canvas {
position: fixed;
top: 50%;
transform: translateY(-50%);
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
}
</style>
<title>Ray Tracer</title>
</head>
<body>
<canvas id="canvas" width="800px" height="800px"></canvas>
<script src="src/Vec3d.js"></script>
<script src="src/Ray.js"></script>
<script src="src/Color.js"></script>
<script src="src/Sphere.js"></script>
<script src="src/Triangle.js"></script>
<script src="src/PointLight.js"></script>
<script src="src/IntersectionPoint.js"></script>
<script src="src/Scene.js"></script>
<script src="src/RayTracer.js"></script>
<script src="src/Material.js"></script>
<script src="scenes.js"></script>
<script src="index.js"></script>
</body>
</html>