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

Fix to only render objects with visible true #632

Closed KihwanChoi12 closed 1 month ago

KihwanChoi12 commented 1 month ago

It makes sense that only objects with visible true are rendered.

The old code used traverseVisible when generating the mesh list, but it was missing in the newer code.

gkjohnson commented 1 month ago

Great, thank you for catching this! I'll make a new release in the coming week.