(translucentTileClassification, scene, passState)
| 457 | }; |
| 458 | |
| 459 | function 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 | |
| 488 | TranslucentTileClassification.prototype.isSupported = function () { |
| 489 | return this._supported; |
no test coverage detected
searching dependent graphs…