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 always set environment intensity #652

Closed KihwanChoi12 closed 1 week ago

KihwanChoi12 commented 2 weeks ago

Reproduction Paths

  1. after the environment of Pathtracer is set once, change the environment of scene to null.
  2. when pathtracer is executed again with the environment null, it does not set the environment intensity because it is the same as the previous environment, and the old environment of the scene is rendered.

Solution Always reset environment intensity

gkjohnson commented 1 week ago

Sorry for the delay! Nice catch - thank you very much!