WebGPU Samples
Github
helloTriangle
helloTriangleMSAA
resizeCanvas
rotatingCube
twoCubes
texturedCube
instancedCube
fractalCube
cameras
cubemap
computeBoids
animometer
videoUploading
videoUploadingWebCodecs
samplerParameters
imageBlur
shadowMapping
reversedZ
deferredRendering
particles
cornell
gameOfLife
renderBundles
worker
A-buffer
bitonicSort
normalMap
Other Pages
Workload Simulator ↗️
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