Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z-Ordering #2960

Merged
merged 8 commits into from
Aug 24, 2015
Prev Previous commit
Next Next commit
Update ground primitives before other primitives.
  • Loading branch information
bagnell committed Aug 24, 2015
commit c1177f3e46864ad1b9bfa1544d72f8e7d17245b9
2 changes: 1 addition & 1 deletion Source/Scene/Scene.js
Original file line number Diff line number Diff line change
@@ -1619,8 +1619,8 @@ define([
scene._globe.update(context, frameState, commandList);
}

scene._primitives.update(context, frameState, commandList);
scene._groundPrimitives.update(context, frameState, commandList);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should do this before _primitives.update so all ground primitives are drawn below all primitives if both were to have GroundPrimitives?

scene._primitives.update(context, frameState, commandList);
}

function callAfterRenderFunctions(frameState) {