Skip to content

grumpyLxr/webgpu-examples

Repository files navigation

Examples that may be helpful when learning WebGPU. Each example extends the previous one and therefore they get increasingly more complex.

00 - Hello Cube

  • rotating cube
  • model-view-projection matrix
  • basic camera movement
  • vertex colors

01 - Let there be light

  • local lighting with Blinn-Phong model
  • point lights
  • rendering of multiple objects and lights

02 - A material improvement

  • diffuse / color textures
  • specular textures
  • normal textures / normal maps

03 - Visual debugging

  • selecting objects
  • rendering wireframes, normals, tangents and bitangents

XX - Dev

  • current development version

TODO

  • 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, ...

About

WebGPU Examples

Resources

Stars

Watchers

Forks

Languages