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

[WIP] Transparency sorting #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[WIP] Transparency sorting #195

wants to merge 1 commit into from

Conversation

kvark
Copy link
Collaborator

@kvark kvark commented Mar 16, 2018

Closes #182
cc @eddyb

This is just a start. The plan is to have some abstraction for passes, and then split the instances (not batches!) between the transparent/opaque passes based on the is_opaque result. The passes are going to be sorted by the distance to camera (in separate orders). Instancing is handled differently:

  • for opaque pass, we aggressively form large batches of instances, averaging the center of the batch between the instances, and only then sorting.
  • for transparent pass, we don't do any batching. As an improvement, we could form some instanced batches after sorting, guaranteeing that the order will persist.

@vitvakatu vitvakatu self-requested a review March 16, 2018 14:50
@vitvakatu vitvakatu removed their request for review June 29, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant