Progress Report
What You've learned
- Defining a custom material
- With the
AsBindGroup
derive and its attributes to handle data transfer to the GPU - Implementing the
Material2d
trait to define the shader - And some basic WGSL
- With the
- And using that material
- Adding it to the app with the
Material2dPlugin
- With the
Mesh2d
component to define the shape - And the
MeshMaterial2d
component to define the material
- Adding it to the app with the
Going Further
Shaders and rendering is a very big domain. You can start by reading the Book of Shaders and the Learn WGPU tutorial.