mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +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
@@ -230,7 +230,7 @@ function groundEffectClass(EffectDesc, NavaraEffect) {
|
||||
});
|
||||
return new NavaraEffect(this.view.camera.raw, this.effect);
|
||||
}
|
||||
update() {
|
||||
updateFrame() {
|
||||
const state = this.owner.state,
|
||||
camera = this.view.camera.raw,
|
||||
mrt = this.find('mrt');
|
||||
|
||||
@@ -40,7 +40,7 @@ function createDrapeEffectClass(EffectDesc, NavaraEffect) {
|
||||
return new NavaraEffect(this.view.camera.raw, this.effect);
|
||||
}
|
||||
|
||||
update() {
|
||||
updateFrame() {
|
||||
const mrt = this.find('mrt');
|
||||
this.owner.globeNormal.value = mrt?.globeNormalBuffer ?? null;
|
||||
this.owner.globeDepth.value = mrt?.globeDepthBuffer ?? null;
|
||||
|
||||
@@ -108,7 +108,7 @@ export function createImageryGround(
|
||||
});
|
||||
return new NavaraEffect(this.view.camera.raw, this.effect);
|
||||
}
|
||||
update() {
|
||||
updateFrame() {
|
||||
if (!this.effect) return;
|
||||
const camera = this.view.camera.raw,
|
||||
u = this.effect.uniforms,
|
||||
|
||||
@@ -244,7 +244,7 @@ function groundEffectClass(EffectDesc, NavaraEffect) {
|
||||
});
|
||||
return new NavaraEffect(this.view.camera.raw, this.effect);
|
||||
}
|
||||
update() {
|
||||
updateFrame() {
|
||||
const state = this.owner.state,
|
||||
camera = this.view.camera.raw;
|
||||
if (!this.effect || !state || !camera) return;
|
||||
|
||||
@@ -232,7 +232,7 @@ function descriptor(EffectDesc, NavaraEffect) {
|
||||
});
|
||||
return new NavaraEffect(this.view.camera.raw, this.effect);
|
||||
}
|
||||
update() {
|
||||
updateFrame() {
|
||||
if (!this.effect) return;
|
||||
const { state, displayT, active, color, pixelRatio } = this.owner;
|
||||
const camera = this.view.camera.raw;
|
||||
|
||||
@@ -118,7 +118,7 @@ function weatherPass(engine, { view, EffectDesc, NavaraEffect }) {
|
||||
});
|
||||
return new NavaraEffect(this.view.camera.raw, this.effect);
|
||||
}
|
||||
update() {
|
||||
updateFrame() {
|
||||
if (!this.effect) return;
|
||||
const camera = this.view.camera.raw,
|
||||
u = this.effect.uniforms;
|
||||
|
||||
Reference in new issue
Block a user