mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 10:12:18 +00:00
Unsubscribe removed Navara effects and models from warm view frames
This commit is contained in:
1 parent
14f7b32537
commit
05b646daa3
16 files changed
+90
-19
No files matched your search
@@ -20,6 +20,7 @@
|
||||
// has no public call to merge effects. A disabled pass is skipped: off costs
|
||||
// nothing.
|
||||
|
||||
import { withFrameUpdates } from './frameDescriptor.js';
|
||||
import { Effect as NavaraEffect, EffectDesc } from '@navaramap/three';
|
||||
import { Effect, EffectAttribute } from 'postprocessing';
|
||||
import { RGBADepthPacking, Uniform } from 'three';
|
||||
@@ -86,7 +87,7 @@ class UnsharpMaskEffect extends Effect {
|
||||
}
|
||||
|
||||
/** config.gevSharpen: { amount } (Cesium's `amount` uniform). */
|
||||
export class SharpenEffectDesc extends EffectDesc {
|
||||
export class SharpenEffectDesc extends withFrameUpdates(EffectDesc) {
|
||||
static key = SHARPEN_EFFECT_KEY;
|
||||
static insertAfter = ['toneMapping'];
|
||||
static insertBefore = ['smaa', 'fxaa', 'gevOverlay', 'final'];
|
||||
@@ -105,7 +106,7 @@ export class SharpenEffectDesc extends EffectDesc {
|
||||
|
||||
// Each frame: the scene depth for the sky mask, when Navara packs it as
|
||||
// RGBA (0.2.1 does); otherwise the whole frame is sharpened.
|
||||
update() {
|
||||
updateFrame() {
|
||||
if (!this.effect) return;
|
||||
const mrt = this.find('mrt');
|
||||
const depth =
|
||||
|
||||
Reference in new issue
Block a user