WebGPU Samples
Github
helloTriangle
helloTriangleMSAA
resizeCanvas
rotatingCube
twoCubes
texturedCube
instancedCube
fractalCube
cubemap
computeBoids
animometer
videoUploading
imageBlur
shadowMapping
reversedZ
deferredRendering
particles
Shadow Mapping
See it on Github!
This example shows how to sample from a depth texture to render shadows.
main.ts
./vertexShadow.wgsl
./vertex.wgsl
./fragment.wgsl
Update
Update
Update