Table of Contents

Struct VertexData

Used internally to represent vertex data, but can also be used as a lower level way to pass data for PolyLines.

public struct VertexData

Constructors

VertexData(float3, Color, float2)

public VertexData(float3 position, Color color, float2 uv = default)

Parameters

position float3
color Color
uv float2

Fields

color

public Color color

Field Value

Color

position

public float3 position

Field Value

float3

uv

Used to pass dash information to the shader.
The x value represents the dash progress, where every 1 unit represents a full dash period (a dash followed by a gap).
The y value represents the normalized dash threshold, and generally should be set to the same value for all vertices.

e.g. passing two vertices with the values (0, 0.25) and (2, 0.25) would produce two dashes (through the values 0-1, and 1-2), with the first 25% being solid, and thr remaining 75% being the gap.

public float2 uv

Field Value

float2