Skip to content

feat: clip boxes data texture #178

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

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

Conversation

Jordan-Lane
Copy link
Contributor

This PR is to support more Clip Boxes by passing them by DataTexture instead of a Uniform Matrix array. This allows us to greatly increase the number of possible clipping boxes while not having to worry about gl.MAX_VERTEX_UNIFORM_VECTORS.

@HectorArellanoDev
Copy link
Collaborator

Hello Jordan, I´m taking care of checking the PRS so I´ll be testing this feature, will get back to you this week. That being said, the new feature assumes that the user can have up to a 1000 clip boxes which implies 4 texture fetches per box, this can hurt the shader performance wise.

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.

2 participants