Skip to content

Commit

Permalink
feat: implement html renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Apr 25, 2024
1 parent 2dc87d8 commit 680e3d6
Show file tree
Hide file tree
Showing 58 changed files with 4,935 additions and 5,325 deletions.
38 changes: 38 additions & 0 deletions examples/Clipper/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../../resources/styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../../resources/favicon.ico">
<title>Simple Clipper</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/clipper.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
<link rel="modulepreload" crossorigin href="../assets/lil-gui.module.min-Bc0DeA9g.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BpIepu9J.js">
<link rel="modulepreload" crossorigin href="../assets/index-DCLJCpH4.js">
<link rel="modulepreload" crossorigin href="../assets/index-BXUCpuVG.js">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
37 changes: 37 additions & 0 deletions examples/Cullers/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../../resources/styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../../resources/favicon.ico">
<title>Screen Culler</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/cullers.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BpIepu9J.js">
<link rel="modulepreload" crossorigin href="../assets/index-DCLJCpH4.js">
<link rel="modulepreload" crossorigin href="../assets/index-C2l-cS9k.js">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
36 changes: 36 additions & 0 deletions examples/Grids/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../../resources/styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../../resources/favicon.ico">
<title>Simple 2D Scene</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/grids.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
<link rel="modulepreload" crossorigin href="../assets/index-DCLJCpH4.js">
<link rel="modulepreload" crossorigin href="../assets/index-C2l-cS9k.js">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
34 changes: 34 additions & 0 deletions examples/Marker/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../../resources/styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../../resources/favicon.ico">
<title>Simple 2D Scene</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/marker.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
36 changes: 36 additions & 0 deletions examples/Materials/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../../resources/styles.css">
<link rel="icon" type="image/x-icon" href="../../resources/favicon.ico">
<title>Material Manager</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/materials.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
<link rel="modulepreload" crossorigin href="../assets/lil-gui.module.min-Bc0DeA9g.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BpIepu9J.js">
<link rel="modulepreload" crossorigin href="../assets/index-DCLJCpH4.js">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
35 changes: 35 additions & 0 deletions examples/Raycasters/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../../resources/styles.css">
<link rel="icon" type="image/x-icon" href="../../resources/favicon.ico">
<title>Simple Raycaster</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/raycasters.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
<link rel="modulepreload" crossorigin href="../assets/index-DCLJCpH4.js">
<link rel="modulepreload" crossorigin href="../assets/index-BXUCpuVG.js">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
2 changes: 2 additions & 0 deletions examples/Worlds/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
}
</style>
<script type="module" crossorigin src="../assets/worlds.js"></script>
<link rel="modulepreload" crossorigin href="../assets/three.module-CYx2Afzj.js">
<link rel="modulepreload" crossorigin href="../assets/index-DCLJCpH4.js">
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions examples/assets/clipper.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions examples/assets/cullers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/assets/grids.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/assets/index-BXUCpuVG.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 680e3d6

Please sign in to comment.