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

Refactoring to LayerComposition internal implementation #5738

Merged
merged 3 commits into from Oct 11, 2023

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Oct 10, 2023

  • LayerCompositions has additional maps to look up index of sublayers, plus few related optimisations
  • RenderAction no longer stores sublayer index
  • LayerComposition is updated when a layer.enable state changes - so we no longer need to handle this during rendering
  • Mesh Instance culling using cameras / layers directly instead of composition / RenderActions, to be easy to use with custom RenderPassRenderAction instances that are not part of the composition.

@mvaligursky mvaligursky self-assigned this Oct 10, 2023
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Oct 10, 2023
…ith custom passes with customer render actions
Co-authored-by: Will Eastcott <will@playcanvas.com>
@mvaligursky mvaligursky merged commit ec72104 into main Oct 11, 2023
7 checks passed
@mvaligursky mvaligursky deleted the mv-sublayer-changes branch October 11, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants