Skip to content

LineSegment is not a proper line #3

@5argon

Description

@5argon

The LineSegment is just a rectangle. But what is a "real line" as in we dragged a pencil over a piece of paper? Surely it doesn't look like a rectangle. It need two more things : line cap and line corner.

LineSegment will not support rendering corner or end cap mesh even in the future, but I am thinking of making CornerSegment and LineEndCap for those, and assemble 3 of them into a complete line with one another component (with a list of corner points instead of start-end). In all, line renderer will render 3 kind of meshes in batches. (Assuming vertex resolution of corners and caps are fixed, which you should for batching performance)

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