Skip to content

Changing point color dynamically #65

@mghildiy

Description

@mghildiy

I want to change colors of some points dynamically.
I do following for point at location j:

geometry.attributes.color.array[3*j] = r;
geometry.attributes.color.array[3*j+1] = g;
geometry.attributes.color.array[3*j+2] = b;
geometry.attributes.color.needsUpdate = true;

But change is not reflected.
What else would I need to do to achieve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions