| | |
| | | this.instance = new THREE.WebGLRenderer({ |
| | | canvas: this.canvas, |
| | | antialias: true, |
| | | alpha: true |
| | | alpha: true, |
| | | logarithmicDepthBuffer: true |
| | | }); |
| | | this.instance.toneMapping = THREE.CineonToneMapping; |
| | | this.instance.toneMappingExposure = 1.75; |
| | | this.instance.shadowMap.enabled = true; |
| | | this.instance.shadowMap.type = THREE.PCFSoftShadowMap; |
| | | // this.instance.toneMapping = THREE.CineonToneMapping; |
| | | // this.instance.toneMappingExposure = 1.75; |
| | | // this.instance.shadowMap.enabled = true; |
| | | // this.instance.shadowMap.type = THREE.PCFSoftShadowMap; |
| | | this.instance.setSize(this.sizes.width, this.sizes.height); |
| | | this.instance.setPixelRatio(this.sizes.pixelRatio); |
| | | } |
| | |
| | | update() { |
| | | this.instance.render(this.scene, this.camera.instance); |
| | | } |
| | | destroy() { |
| | | this.instance.dispose(); |
| | | this.instance.domElement.remove(); |
| | | } |
| | | } |