diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-08-19 12:35:18 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-08-19 12:35:18 +0900 |
| commit | d686e70f2bcfe6f5edbd5b1149d456781fafd022 (patch) | |
| tree | b287a0cba9acb4ddde4539f71d8a5c6fff176b7f /src/client/app | |
| parent | New Crowdin translations (#5312) (diff) | |
| download | sharkey-d686e70f2bcfe6f5edbd5b1149d456781fafd022.tar.gz sharkey-d686e70f2bcfe6f5edbd5b1149d456781fafd022.tar.bz2 sharkey-d686e70f2bcfe6f5edbd5b1149d456781fafd022.zip | |
[Room] Better rendering
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/common/scripts/room/room.ts | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/client/app/common/scripts/room/room.ts b/src/client/app/common/scripts/room/room.ts index 4966302ef8..da16b9a14b 100644 --- a/src/client/app/common/scripts/room/room.ts +++ b/src/client/app/common/scripts/room/room.ts @@ -157,18 +157,25 @@ export class Room { } //#region Out light - const outLight = new THREE.SpotLight(0xffffff, 0.4); + const outLight1 = new THREE.SpotLight(0xffffff, 0.4); + outLight1.position.set(9, 3, -2); + outLight1.castShadow = this.enableShadow; + outLight1.shadow.bias = -0.001; // アクネ、アーチファクト対策 その代わりピーターパンが発生する可能性がある + outLight1.shadow.mapSize.width = this.shadowQuality; + outLight1.shadow.mapSize.height = this.shadowQuality; + outLight1.shadow.camera.near = 6; + outLight1.shadow.camera.far = 15; + outLight1.shadow.camera.fov = 45; + this.scene.add(outLight1); - outLight.position.set(9, 3, -2); - outLight.castShadow = this.enableShadow; - outLight.shadow.bias = -0.001; // アクネ、アーチファクト対策 その代わりピーターパンが発生する可能性がある - outLight.shadow.mapSize.width = this.shadowQuality; - outLight.shadow.mapSize.height = this.shadowQuality; - outLight.shadow.camera.near = 6; - outLight.shadow.camera.far = 15; - outLight.shadow.camera.fov = 45; - - this.scene.add(outLight); + const outLight2 = new THREE.SpotLight(0xffffff, 0.2); + outLight2.position.set(-2, 3, 9); + outLight2.castShadow = false; + outLight2.shadow.bias = -0.001; // アクネ、アーチファクト対策 その代わりピーターパンが発生する可能性がある + outLight2.shadow.camera.near = 6; + outLight2.shadow.camera.far = 15; + outLight2.shadow.camera.fov = 45; + this.scene.add(outLight2); //#endregion //#region Init a controller |