import super::util::make_polka_dots; struct VertexOutput { @builtin(position) position: vec4, @location(2) uv: vec2, } struct CustomMaterial { // Needed for 16-bit alignment on WebGL2 time: vec4, } @group(3) @binding(0) var material: CustomMaterial; @fragment fn fragment( mesh: VertexOutput, ) -> @location(0) vec4 { return make_polka_dots(mesh.uv, material.time.x); }