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:
24
pyscriptjs/examples/webgl/boxes/boxes.html
Normal file
24
pyscriptjs/examples/webgl/boxes/boxes.html
Normal 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>
|
||||
Reference in New Issue
Block a user