Skip to content

color hash for geometry reuse is always 1 #1356

@muren400

Description

@muren400

Hi,

when calling StreamingGeometryGenerator.hash in GeometryRunner, the color buffer's position is always set to the end of the buffer resulting in colors.hashCode() always returning 1.

int hash = this.streamingGeometryGenerator.hash(indices, vertices, normals, colors);

The hash code of a byte buffer depends only upon its remaining elements; that is, upon the elements from position() up to, and including, the element at limit() - 1.

As a result, geometries can be reused if the mesh is identical although they have different index colors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions