modify some things to remove warnings on server and in browser console

This commit is contained in:
2023-05-16 06:39:36 -06:00
parent a9844e6e78
commit f603882d42
6 changed files with 12 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ function createRenderer() {
const renderer = new WebGLRenderer({ antialias: true });
// turn on the physically correct lighting model
// (The browser complains: "THREE.WebGLRenderer: .physicallyCorrectLights has been removed. Set enderer.useLegacyLights instead." However, that changes the lighting in a way that doesn't look better.)
renderer.physicallyCorrectLights = true;
return renderer;