WebGPU Samples
Github
helloTriangle
helloTriangleMSAA
resizeCanvas
rotatingCube
twoCubes
texturedCube
instancedCube
fractalCube
cubemap
computeBoids
animometer
videoUploading
imageBlur
shadowMapping
reversedZ
deferredRendering
particles
Instanced Cube
See it on Github!
This example shows the use of instancing.
main.ts
../../shaders/instanced.vert.wgsl
../../shaders/vertexPositionColor.frag.wgsl
../../meshes/cube.ts
Update
Update