Skip to content

Commit

Permalink
updats
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Dec 24, 2024
1 parent 8364e75 commit aa0b7cb
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/plugins/three/fade/TilesFadePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,27 +147,22 @@ function onUpdateAfter() {

// TODO
const scene = t.cached.scene;
if ( ! scene ) {

return;

}

// if a tile is fading out then it may not be traversed and thus will not have
// the frustum flag set correctly.
if ( fadeManager.isFadingOut( t ) ) {

scene.visible = true;
const isFadingOut = fadeManager.isFadingOut( t );
if ( scene ) {

} else {
scene.visible = isFadingOut || t.__inFrustum;

if ( scene ) {
}

scene.visible = t.__inFrustum;
this.forEachBatchIds( ( id, batchedMesh, plugin ) => {

}
batchedMesh.setVisibleAt( id, isFadingOut || t.__inFrustum );
plugin.batchedMesh.setVisibleAt( id, t.__inFrustum );

}
} );

} );

Expand Down

0 comments on commit aa0b7cb

Please sign in to comment.