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

BatchedMesh: Change visibility to use a zero-scale matrix #27043

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

gkjohnson
Copy link
Collaborator

@gkjohnson gkjohnson commented Oct 24, 2023

Related issue: #25059, #22376

Description

BatchedMesh was using a matrix full of zeros to "hide" a geometry - but when multiplying a homogenous vector 4 position by this matrix you get a 0 in the w component which isn't correct for a position coordinate. This PR changes the hidden-visibility matrix to use a 1 in the final field to ensure the w remains untouched.

cc @takahirox

@gkjohnson gkjohnson added this to the r158 milestone Oct 24, 2023
@Mugen87 Mugen87 merged commit 5d04c8e into mrdoob:dev Oct 24, 2023
19 checks passed
@gkjohnson gkjohnson deleted the batched-mesh-matrix branch October 24, 2023 12:12
CITIZENDOT pushed a commit to CITIZENDOT/three.js that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants