This commit is contained in:
syuilo
2026-02-20 16:59:40 +09:00
parent d68655f5c2
commit a0356d8d4d
2 changed files with 4 additions and 4 deletions

View File

@@ -307,11 +307,11 @@ export class RoomEngine {
this.roomLight.shadowMinZ = 10/*cm*/;
this.roomLight.shadowMaxZ = 300/*cm*/;
this.shadowGenerator1 = new BABYLON.ShadowGenerator(2048, this.roomLight);
this.shadowGenerator1 = new BABYLON.ShadowGenerator(4096, this.roomLight);
this.shadowGenerator1.forceBackFacesOnly = true;
this.shadowGenerator1.bias = 0.0001;
this.shadowGenerator1.usePercentageCloserFiltering = true;
this.shadowGenerator1.useContactHardeningShadow = true;
//this.shadowGenerator1.useContactHardeningShadow = true;
const sunLight = new BABYLON.DirectionalLight('sunLight', new BABYLON.Vector3(0.2, -1, -1), this.scene);
sunLight.position = new BABYLON.Vector3(-20, 1000, 1000);
@@ -320,7 +320,7 @@ export class RoomEngine {
sunLight.shadowMinZ = 1000/*cm*/;
sunLight.shadowMaxZ = 2000/*cm*/;
this.shadowGenerator2 = new BABYLON.ShadowGenerator(4092, sunLight);
this.shadowGenerator2 = new BABYLON.ShadowGenerator(4096, sunLight);
this.shadowGenerator2.forceBackFacesOnly = true;
this.shadowGenerator2.bias = 0.0001;
this.shadowGenerator2.usePercentageCloserFiltering = true;

View File

@@ -17,7 +17,7 @@ export const colorBox = defineObject({
},
},
default: {
color: [1, 1, 1],
color: [0.75, 0.75, 0.75],
},
},
placement: 'floor',