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
036b8ea320
commit
24caff71e1
1 changed files with 10 additions and 0 deletions
|
|
@ -435,6 +435,16 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||
}
|
||||
}
|
||||
|
||||
if (options.graphicsQuality >= GRAPHICS_QUALITY_HIGH) {
|
||||
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 (_DEV_) {
|
||||
// snapshot renderingかつglow layerが有効だとなんかクラッシュする
|
||||
if (!(SNAPSHOT_RENDERING && this.useGlow)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue