1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 14:05:35 +02:00
This commit is contained in:
syuilo
2026-04-27 19:05:03 +09:00
parent c09d445215
commit 634cdf5e1e
3 changed files with 20 additions and 6 deletions

View File

@@ -435,14 +435,28 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
}
}
if (options.graphicsQuality >= GRAPHICS_QUALITY_HIGH) {
if (options.graphicsQuality >= GRAPHICS_QUALITY_MEDIUM) {
const pipeline = new BABYLON.DefaultRenderingPipeline('default', true, this.scene);
pipeline.bloomEnabled = true;
pipeline.bloomThreshold = 0.95;
pipeline.bloomWeight = 0.3;
pipeline.bloomKernel = 256;
pipeline.bloomScale = 2;
if (options.graphicsQuality >= GRAPHICS_QUALITY_HIGH) {
// snapshot renderingと相性が悪そう
//pipeline.depthOfFieldEnabled = true;
//pipeline.depthOfField.focusDistance = 1500;
//pipeline.depthOfField.focalLength = 20;
//pipeline.depthOfField.fStop = 1.4;
pipeline.bloomEnabled = true;
pipeline.bloomThreshold = 0.95;
pipeline.bloomWeight = 0.3;
pipeline.bloomKernel = 256;
pipeline.bloomScale = 2;
//pipeline.chromaticAberrationEnabled = true;
//pipeline.chromaticAberration.radialIntensity = 2;
}
pipeline.sharpenEnabled = true;
pipeline.sharpen.edgeAmount = 0.5;
}
if (_DEV_) {