1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

added some webgl boxes

This commit is contained in:
Michael Verhulst
2022-04-14 15:43:00 -05:00
parent 44c6d51497
commit 520fe84a86
13 changed files with 126451 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Demo 05</title>
<script type="text/javascript" src="/webgl/boxes/js/three.min.js" ></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script type="text/javascript" src="/webgl/boxes/js/MTLLoader.js" ></script>
<script type="text/javascript" src="/webgl/boxes/js/OBJLoader.js" ></script>
<script type="text/javascript" src="/webgl/boxes/js/demo.js" ></script>
<script defer src="/build/pyscript.js"></script>
<link rel="stylesheet" href="/build/pyscript.css" />
</head>
<body style="text-align:center;">
<span style="position:absolute;top:0px;left:0px;"><input type="button" value="Toggle Wireframe" onclick="mesh.material.wireframe=!mesh.material.wireframe;meshFloor.material.wireframe=!meshFloor.material.wireframe;"/><br/>WASD to move.<br/>Arrow keys to turn.</span>
<py-script>
from pyodide import create_proxy, to_js
from js import THREE
</py-script>
</body>
</html>