REAL RUST / WGPU / WGSL
One object. A different light.一个物体,换一种光。
A synthetic material study made of 1,536 Gaussian surfels. Move the light and inspect what the shader computes. Camera, light and object time are independent.由 1,536 个 Gaussian surfel 构成的合成材质实验。移动光源,观察 shader 求出的结果。相机、光源和物体时间分别控制。
Drag horizontally to orbit, or focus the canvas and use ← / →. Home resets the camera. The light remains fixed in world space.水平拖拽绕转,或聚焦画布使用 ← / →。Home 重置相机。光源固定在世界空间。
What to notice观察重点
Explain the equation →解释对应公式 →WebGPU is unavailable or failed. The lessons and source still work; use the native offscreen example below or retry after enabling supported hardware acceleration.WebGPU 不可用或启动失败。课程与源码仍可阅读;可运行下方原生离屏示例,或启用受支持的硬件加速后重试。
The exact rendering path实际运行的渲染路径
Direct lighting only. No cast shadows, environment map or inverse training. The object is an analytic known-material surface; these are not estimated parameters of the STG research scene. Five modes inspect separate terms, not five independently trained models.仅直射光,没有投射阴影、环境贴图或逆向训练。物体是材质已知的解析曲面,不是对 STG 研究场景估计出的参数。五种模式查看不同项,不是五个独立训练的模型。
Run the same pass locally and inspect the code本地运行同一 pass 并查看代码
cargo run --example relight_pixels
npm run build:wasm
npm run build:math
npx wrangler dev --config wrangler.jsoncThe first command writes 13 PNGs and an assertion report to artifacts/relight/. It uses the same RelightPass without a window. The remaining commands build and serve the browser host.第一条命令使用无窗口的同一 RelightPass,在 artifacts/relight/ 写入 13 张 PNG 与断言报告。其余命令构建并启动浏览器宿主。