mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-30 08:44:01 +02:00
wip
This commit is contained in:
@@ -226,7 +226,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
||||
engine: BABYLON.WebGPUEngine;
|
||||
graphicsQuality: number;
|
||||
fps: number | null;
|
||||
sharpen: boolean;
|
||||
useVirtualJoystick?: boolean;
|
||||
}) {
|
||||
super();
|
||||
@@ -429,30 +428,27 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
||||
}
|
||||
}
|
||||
|
||||
if (options.graphicsQuality >= GRAPHICS_QUALITY_MEDIUM) {
|
||||
if (options.graphicsQuality >= GRAPHICS_QUALITY_HIGH) {
|
||||
const pipeline = new BABYLON.DefaultRenderingPipeline('default', true, this.scene);
|
||||
pipeline.samples = 4;
|
||||
|
||||
if (options.graphicsQuality >= GRAPHICS_QUALITY_HIGH) {
|
||||
// snapshot renderingと相性が悪そう
|
||||
//pipeline.depthOfFieldEnabled = true;
|
||||
//pipeline.depthOfField.focusDistance = 1500;
|
||||
//pipeline.depthOfField.focalLength = 20;
|
||||
//pipeline.depthOfField.fStop = 1.4;
|
||||
// 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.bloomEnabled = true;
|
||||
pipeline.bloomThreshold = 0.95;
|
||||
pipeline.bloomWeight = 0.3;
|
||||
pipeline.bloomKernel = 256;
|
||||
pipeline.bloomScale = 2;
|
||||
|
||||
//pipeline.chromaticAberrationEnabled = true;
|
||||
//pipeline.chromaticAberration.radialIntensity = 2;
|
||||
}
|
||||
//pipeline.chromaticAberrationEnabled = true;
|
||||
//pipeline.chromaticAberration.radialIntensity = 2;
|
||||
|
||||
if (options.sharpen) {
|
||||
pipeline.sharpenEnabled = true;
|
||||
pipeline.sharpen.edgeAmount = 0.5;
|
||||
}
|
||||
pipeline.sharpenEnabled = true;
|
||||
pipeline.sharpen.edgeAmount = 0.5;
|
||||
}
|
||||
|
||||
if (_DEV_) {
|
||||
|
||||
Reference in New Issue
Block a user