之前好像有人问过类似的实现,当时写了个[demo]( https://kuraa.cc/upload/testPhy.html )。 前端现在都要从 webgl 进化到 webgpu 了,花里胡哨的很多,差不多都是 canvas 相关的,物理引擎,3d 渲染,粒子,shader 之类的。