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

Don’t include code using vertex_tangent unless needed #5176

Merged
merged 1 commit into from Mar 22, 2023

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Mar 21, 2023

Chunk tangentBinormalVS contains handling of tangent and binormal, and should only be included if vertex buffer contains tangent, gated by options.hasTangents. But unrelated getObjectSpaceUp was included in this chunk and needed in cases hasTangent was false. This was adding attribute vec4 vertex_tangent; to vertex shader even though vertex format did not have tangent, failing on WebGPU.
The unrelated getObjectSpaceUp has been removed from the chunk now.

@mvaligursky mvaligursky self-assigned this Mar 21, 2023
@mvaligursky mvaligursky merged commit eacc336 into main Mar 22, 2023
7 checks passed
@mvaligursky mvaligursky deleted the mv-cleanup-tangent branch March 22, 2023 09:01
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.

None yet

2 participants