This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
//! A shader and a material that uses it.
/// set up a simple 3D scene
// This struct defines the data that will be passed to your shader
/// The Material trait is very configurable, but comes with sensible defaults for all methods.
/// You only need to implement functions for features that need non-default behavior. See the Material api docs for details!