mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 09:24:22 +02:00
Update env.ts
This commit is contained in:
@@ -124,14 +124,14 @@ export class SimpleEnvManager extends EnvManager<SimpleEnvOptions> {
|
|||||||
if (this.engine.graphicsQuality >= GRAPHICS_QUALITY.MEDIUM) {
|
if (this.engine.graphicsQuality >= GRAPHICS_QUALITY.MEDIUM) {
|
||||||
const shadowGeneratorForRoomLight = new BABYLON.ShadowGenerator(this.engine.graphicsQuality <= GRAPHICS_QUALITY.MEDIUM ? 1024 : 2048, this.roomLight);
|
const shadowGeneratorForRoomLight = new BABYLON.ShadowGenerator(this.engine.graphicsQuality <= GRAPHICS_QUALITY.MEDIUM ? 1024 : 2048, this.roomLight);
|
||||||
shadowGeneratorForRoomLight.forceBackFacesOnly = true;
|
shadowGeneratorForRoomLight.forceBackFacesOnly = true;
|
||||||
shadowGeneratorForRoomLight.bias = 0.00001;
|
shadowGeneratorForRoomLight.bias = 0.0005;
|
||||||
shadowGeneratorForRoomLight.normalBias = 0.005;
|
|
||||||
shadowGeneratorForRoomLight.usePercentageCloserFiltering = true;
|
shadowGeneratorForRoomLight.usePercentageCloserFiltering = true;
|
||||||
shadowGeneratorForRoomLight.filteringQuality = BABYLON.ShadowGenerator.QUALITY_HIGH;
|
shadowGeneratorForRoomLight.filteringQuality = BABYLON.ShadowGenerator.QUALITY_HIGH;
|
||||||
if (this.engine.graphicsQuality <= GRAPHICS_QUALITY.MEDIUM) {
|
if (this.engine.graphicsQuality <= GRAPHICS_QUALITY.MEDIUM) {
|
||||||
shadowGeneratorForRoomLight.getShadowMap().refreshRate = 60;
|
shadowGeneratorForRoomLight.getShadowMap().refreshRate = 60;
|
||||||
}
|
}
|
||||||
//this.shadowGeneratorForRoomLight.useContactHardeningShadow = true;
|
//shadowGeneratorForRoomLight.useContactHardeningShadow = true;
|
||||||
|
//shadowGeneratorForRoomLight.contactHardeningLightSizeUVRatio = 0.01;
|
||||||
this.shadowGenerators.push(shadowGeneratorForRoomLight);
|
this.shadowGenerators.push(shadowGeneratorForRoomLight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user