Live-coding of parametric functions in WebGPU
OTHER License
--enable-unsafe-webgpu
flag.TODO:
Start by modifying the samplePosition() function. You can also modify the vertex and fragment shaders for full control over procedural geometry and textures. Note that there are two vertex shaders - one for triangle and another one for point primitives.
The shader code is stored as part of the URL. You can simply copy & paste the URL to share the results.
Modified version of a parametric function in the mathworks examples.
URL: https://users.cg.tuwien.ac.at/mschuetz/parametric/parametric.html
Simple plane geometry, colored and animated by the fragment shader.