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

Function executeCommandsInViewport

packages/engine/Source/Scene/Scene.js:3495–3515  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

3493 * @private
3494 */
3495function 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
3517const scratchCullingVolume = new CullingVolume();
3518

Callers 2

Scene.jsFile · 0.85

Calls 4

executeComputeCommandsFunction · 0.85
executeCommandsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…