MCPcopy
hub / github.com/CesiumGS/cesium / clear

Function clear

packages/engine/Source/Scene/TranslucentTileClassification.js:459–486  ·  view source on GitHub ↗
(translucentTileClassification, scene, passState)

Source from the content-addressed store, hash-verified

457};
458
459function clear(translucentTileClassification, scene, passState) {
460 if (!translucentTileClassification._hasTranslucentDepth) {
461 return;
462 }
463
464 const framebuffer = passState.framebuffer;
465
466 passState.framebuffer =
467 translucentTileClassification._drawClassificationFBO.framebuffer;
468 translucentTileClassification._clearColorCommand.execute(
469 scene._context,
470 passState,
471 );
472
473 passState.framebuffer = framebuffer;
474
475 if (translucentTileClassification._frustumsDrawn > 1) {
476 passState.framebuffer =
477 translucentTileClassification._accumulationFBO.framebuffer;
478 translucentTileClassification._clearColorCommand.execute(
479 scene._context,
480 passState,
481 );
482 }
483
484 translucentTileClassification._hasTranslucentDepth = false;
485 translucentTileClassification._frustumsDrawn = 0;
486}
487
488TranslucentTileClassification.prototype.isSupported = function () {
489 return this._supported;

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…