gkjohnson / three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html
MIT License
1.27k stars 125 forks source link

WebGLPathTracer: Use compileAsync for material #634

Closed gkjohnson closed 2 weeks ago

gkjohnson commented 1 month ago

On "set scene" we call "compileAsync" and defer any sample renders until the material is ready