mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update engine.ts
This commit is contained in:
parent
acd9b94b49
commit
d1555d5423
1 changed files with 2 additions and 2 deletions
|
|
@ -312,7 +312,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||
this.shadowGeneratorForRoomLight.bias = 0.0001;
|
||||
this.shadowGeneratorForRoomLight.usePercentageCloserFiltering = true;
|
||||
this.shadowGeneratorForRoomLight.filteringQuality = BABYLON.ShadowGenerator.QUALITY_HIGH;
|
||||
if (!SNAPSHOT_RENDERING) this.shadowGeneratorForRoomLight.getShadowMap().refreshRate = 60; // snapshot renderingではrefreshRateが設定されているとなぜかクラッシュする
|
||||
this.shadowGeneratorForRoomLight.getShadowMap().refreshRate = 60;
|
||||
//this.shadowGenerator1.useContactHardeningShadow = true;
|
||||
|
||||
const sunLight = new BABYLON.DirectionalLight('sunLight', new BABYLON.Vector3(0.2, -1, -1), this.scene);
|
||||
|
|
@ -327,7 +327,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||
this.shadowGeneratorForSunLight.bias = 0.0001;
|
||||
this.shadowGeneratorForSunLight.usePercentageCloserFiltering = true;
|
||||
this.shadowGeneratorForSunLight.usePoissonSampling = true;
|
||||
if (!SNAPSHOT_RENDERING) this.shadowGeneratorForSunLight.getShadowMap().refreshRate = 60; // snapshot renderingではrefreshRateが設定されているとなぜかクラッシュする
|
||||
this.shadowGeneratorForSunLight.getShadowMap().refreshRate = 60;
|
||||
|
||||
this.lightContainer = new BABYLON.ClusteredLightContainer('clustered', [], this.scene);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue