* Execute the draw commands to render the scene into the viewport. * If this is the first viewport rendered, the framebuffers will be cleared to the background color. * * @param {boolean} firstViewport true if this is the first viewport rendered. * @param {Scene} scene * @param {Pa
(firstViewport, scene, passState)
| 3493 | * @private |
| 3494 | */ |
| 3495 | function executeCommandsInViewport(firstViewport, scene, passState) { |
| 3496 | const view = scene._view; |
| 3497 | const { renderTranslucentDepthForPick } = scene._environmentState; |
| 3498 | |
| 3499 | if (!firstViewport) { |
| 3500 | scene.frameState.commandList.length = 0; |
| 3501 | } |
| 3502 | |
| 3503 | updateAndRenderPrimitives(scene); |
| 3504 | |
| 3505 | view.createPotentiallyVisibleSet(scene); |
| 3506 | |
| 3507 | if (firstViewport) { |
| 3508 | executeComputeCommands(scene); |
| 3509 | if (!renderTranslucentDepthForPick) { |
| 3510 | executeShadowMapCastCommands(scene); |
| 3511 | } |
| 3512 | } |
| 3513 | |
| 3514 | executeCommands(scene, passState); |
| 3515 | } |
| 3516 | |
| 3517 | const scratchCullingVolume = new CullingVolume(); |
| 3518 |
no test coverage detected
searching dependent graphs…