Examples that may be helpful when learning WebGPU. Each example extends the previous one and therefore they get increasingly more complex.
- rotating cube
- model-view-projection matrix
- basic camera movement
- vertex colors
- local lighting with Blinn-Phong model
- point lights
- rendering of multiple objects and lights
- diffuse / color textures
- specular textures
- normal textures / normal maps
- selecting objects
- rendering wireframes, normals, tangents and bitangents
- current development version
- Loading models
- Mip-Maps
- Antialiasing
- Correct tangent space calculation with smoothed normals
- Lighting with quadratic falloff
- Shadows
- More light types: directional light, spot lights, volumetric light, area light, ...