Unsubscribe removed Navara effects and models from warm view frames

This commit is contained in:
German Khokhlov committed 2026-11-03 05:16:20 +04:00
1 parent 14f7b32537
commit 05b646daa3
16 files changed
+90 -19

No files matched your search

+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;