diff --git a/src/Renderer/baseRenderer.ts b/src/Renderer/baseRenderer.ts index 0adfdc1..f71d347 100644 --- a/src/Renderer/baseRenderer.ts +++ b/src/Renderer/baseRenderer.ts @@ -39,11 +39,10 @@ export default class baseRenderer { }); } - this.renderer.physicallyCorrectLights = true; - // this.renderer.useLegacyLights = true; - this.renderer.outputEncoding = THREE.sRGBEncoding; + this.renderer.useLegacyLights = true; + this.renderer.outputColorSpace = THREE.SRGBColorSpace; this.gui = null; - this.stats = Stats(); + this.stats = new Stats(); this.pmremGenerator = new THREE.PMREMGenerator(this.renderer); this.pmremGenerator.compileEquirectangularShader(); this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)); diff --git a/src/Renderer/copperMSceneRenderer.ts b/src/Renderer/copperMSceneRenderer.ts index bf791a4..95b6905 100644 --- a/src/Renderer/copperMSceneRenderer.ts +++ b/src/Renderer/copperMSceneRenderer.ts @@ -37,8 +37,10 @@ export default class copperMSceneRenderer { } init() { - this.renderer.physicallyCorrectLights = true; - this.renderer.outputEncoding = THREE.sRGBEncoding; + // this.renderer.physicallyCorrectLights = true; + // this.renderer.outputEncoding = THREE.sRGBEncoding; + this.renderer.useLegacyLights = true; + this.renderer.outputColorSpace = THREE.SRGBColorSpace; this.pmremGenerator.compileEquirectangularShader(); this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));