Skip to content

Commit 0db338a

Browse files
committed
Add PlayCanvas WebGPU sample
1 parent 66c92d7 commit 0db338a

File tree

4 files changed

+469
-1
lines changed

4 files changed

+469
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ Test of WebGPU
1414
|[RedGPU](https://github.com/redcamel/RedGPU) |[Link](https://cx20.github.io/webgpu-test/examples/redgpu/triangle/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/redgpu/square/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/redgpu/cube/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/redgpu/texture/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/redgpu/teapot/index.html) | | |
1515
|[three.js](https://github.com/mrdoob/three.js/) (using [TSL](https://github.com/mrdoob/three.js/wiki/Three.js-Shading-Language)) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/triangle/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/square/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/cube/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/texture/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/teapot/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/primitive/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/threejs/complex/index.html) |
1616
|[Hilo3d](https://github.com/06wj/WebGPU-Playground) |[Link](https://cx20.github.io/webgpu-test/examples/hilo3d/triangle/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/hilo3d/square/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/hilo3d/cube/index.html) | | | | |
17-
|[PlayCanvas](https://github.com/playcanvas/engine/tree/main/src/platform/graphics/webgpu) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/triangle/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/square/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/cube/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/texture/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/teapot/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/primitive/index.html) | |
17+
|[PlayCanvas](https://github.com/playcanvas/engine/tree/main/src/platform/graphics/webgpu) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/triangle/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/square/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/cube/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/texture/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/teapot/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/primitive/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/playcanvas/complex/index.html) (WIP) |
1818
|[Rhodonite](https://github.com/actnwit/RhodoniteTS) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/triangle/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/square/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/cube/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/texture/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/teapot/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/primitive/index.html) |[Link](https://cx20.github.io/webgpu-test/examples/rhodonite/complex/index.html) |
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>[WIP][WebGPU] Testing Complex sample Using PlayCanvas</title>
5+
<link rel="stylesheet" type="text/css" href="style.css">
6+
</head>
7+
<body>
8+
<!-- Since import maps are not yet supported by all browsers, its is
9+
necessary to add the polyfill es-module-shims.js -->
10+
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
11+
12+
<script type="importmap">
13+
{
14+
"imports": {
15+
"playcanvas": "https://cx20.github.io/gltf-test/libs/playcanvas/v2.5.0/playcanvas-stable.min.mjs",
16+
"camera-controls": "https://cx20.github.io/gltf-test/libs/playcanvas/v2.5.0/camera-controls.mjs",
17+
"dat.gui": "https://cx20.github.io/gltf-test/libs/common/dat.gui.module.js"
18+
}
19+
}
20+
</script>
21+
22+
<canvas id="application"></canvas>
23+
<script type="module" src="index.js"></script>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)