-
Notifications
You must be signed in to change notification settings - Fork 4
/
quake-1-e1m1.html
31 lines (29 loc) · 1.05 KB
/
quake-1-e1m1.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="benchmark.css">
<title>Benchmark - Quake 1 (E1M1) - Retro n-gon renderer</title>
</head>
<body>
<script src="../../../distributable/rngon.cat.js"></script>
<script type="module">
import {benchmark} from "./benchmark.js";
import {scene} from "./assets/quake-1/e1m1.rngon-model.js";
(async()=>
{
await scene.initialize();
benchmark([Rngon.mesh(scene.ngons)],
{x:500, y:30, z:400},
{x:-20, y:197, z:0},
{
fov: 60,
nearPlane: 2,
farPlane: 5000,
scale: 0.2,
});
})();
</script>
</body>
</html>