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

NodeMaterial: Use type 'vec3' when getting color attribute, fixing crash in WebGPU. #27210

Merged
merged 1 commit into from Nov 18, 2023

Conversation

andreasrosdal
Copy link
Contributor

@andreasrosdal andreasrosdal commented Nov 18, 2023

NodeMaterial: Use type 'vec3' when getting color attribute, fixing crash in WebGPU:

Error: no matching constructor for vec4.

Related issue: Fixes #27208
Related issue: danrossi/three-webgpu-renderer#7

Solution found by @LeviPesin

*This contribution is funded by me. :)

image

This is part of updating https://Fciv.net ( https://github.com/fciv-net/fciv-net ) to the new WebGPU renderer using https://github.com/danrossi/three-webgpu-renderer/

@sunag sunag added this to the r159 milestone Nov 18, 2023
@sunag sunag merged commit 4c5c68f into mrdoob:dev Nov 18, 2023
11 checks passed
@sunag
Copy link
Collaborator

sunag commented Nov 18, 2023

I noticed that we didn't implement vertex alpha, but we can see that in another PR.

AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
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.

Crash in WebGPU: Error: no matching constructor for vec4
2 participants