Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

getOrSetColor() is always called when moving mouse. #2

Open
Getsumi3 opened this issue Jun 11, 2021 · 0 comments
Open

getOrSetColor() is always called when moving mouse. #2

Getsumi3 opened this issue Jun 11, 2021 · 0 comments

Comments

@Getsumi3
Copy link
Contributor

Hi.
I was doing some research and noticed that method getOrSetColors(newValue) from particle-view.js is always called when moving the mouse.
Especially this part:
if (isFloat32Array(newValue) && newValue.length === colors.length) { colors = newValue; geometry.getAttribute('customColor').needsUpdate = true; }
Looks like this if condition is always true.
I don't know if this is an intentional behavior so I thought I'll open an issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant