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

Deprecate pc.Frustum#update #2296

Merged
merged 5 commits into from
Jul 23, 2020
Merged

Deprecate pc.Frustum#update #2296

merged 5 commits into from
Jul 23, 2020

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Jul 17, 2020

Currently, the API has pc.Frustum#update which takes two matrices (view and projection). It would be cleaner to have a function which sets the frustum planes from a single generic matrix. Therefore, this PR deprecates pc.Frustum#update and replaces it with the better named pc.Frustum#setFromMat4 (which is consistent with pc.Quat#setFromMat4 too). This eliminates a matrix mult op every frame in the forward renderer too.

I confirm I have signed the Contributor License Agreement.

@willeastcott willeastcott added enhancement performance Relating to load times or frame rate labels Jul 17, 2020
@willeastcott willeastcott requested a review from a team July 17, 2020 11:17
@willeastcott willeastcott self-assigned this Jul 17, 2020
@willeastcott willeastcott merged commit 0d027c4 into master Jul 23, 2020
@willeastcott willeastcott deleted the frustum-update branch July 23, 2020 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Relating to load times or frame rate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants