Interface GreasedLineMeshBuilderOptions
colorPointers?: number[];
instance?: GreasedLineBaseMesh;
lazy?: boolean;
points: GreasedLinePoints;
pointsOptions?: GreasedLinePointsOptions;
ribbonOptions?: GreasedLineRibbonOptions;
updatable?: boolean;
uvs?: FloatArray;
widthDistribution?: GreasedLineMeshWidthDistribution;
widths?: number[];
}
Hierarchy (View Summary)
- GreasedLineMeshOptions
- GreasedLineMeshBuilderOptions
Index
Properties
Optionalcolor Pointers
You can manually set the color pointers so you can control which segment/part will use which color from the colors material option
Optionalinstance
If instance is specified, lines are added to the specified instance. Defaults to undefined.
Optionallazy
Use when
points
Points of the line.
Optionalpoints Options
Options for converting the points.
Optionalribbon Options
The options for the ribbon which will be used as a line. If this option is set the line switches automatically to a non camera facing mode.
Optionalupdatable
If true, offsets and widths are updatable. Defaults to false.
Optionaluvs
UVs for the mesh
Optionalwidth Distribution
Distribution of the widths if the width table contains fewer entries than needed. Defaults to GreasedLineMeshWidthDistribution.WIDTH_DISTRIBUTION_START
Optionalwidths
Each line segment (from point to point) can have it's width multiplier. Final width = widths[segmentIdx] * width. Defaults to empty array.
Line mesh options for GreasedLineBuilder