Skip to content

Line expansion index array too big #4

@Scarysize

Description

@Scarysize

Hey, just went through your code, because I wanted to recreate the line width via expansion and I noticed that the index array your are generating in gl-line-2d is too big.

You create it via

indices = createIndices(path.length);

(https://github.com/mattdesl/webgl-lines/blob/master/expanded/gl-line-2d.js#L50)

But path.length - 1 should probably be enough.

Thanks for the great article and the code shared! 👍

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