looeee / discoverthreejs-site

Repo for the book Discover three.js!
https://discoverthreejs.com/
734 stars 96 forks source link

.physicallyCorrectLights has been removed #97

Open Patzi275 opened 1 year ago

Patzi275 commented 1 year ago

Three.webGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer .useLegacyLights instead is displayed in the console when I use it.

The solution:

renderer.useLegacyLights = false;