Interface GreasedLineMaterialBuilderOptions
Hierarchy
- GreasedLineMaterialOptions
- GreasedLineMaterialBuilderOptions
Index
Properties
Optional colorSearch playground for color
Color of the line. Applies to all line segments. Defaults to White.
Optional color DistributionSearch playground for colorDistribution
Distribution of the colors if the color table contains fewer entries than needed. Defaults to GreasedLineMeshColorDistribution.COLOR_DISTRIBUTION_START
Optional color Distribution TypeSearch playground for colorDistributionType
The method used to distribute the colors along the line. You can use segment distribution when each segment will use on color from the color table. Or you can use line distribution when the colors are distributed evenly along the line ignoring the segments.
Optional color ModeSearch playground for colorMode
Color mode of the line. Applies to all line segments. The pixel color from the material shader will be modified with the value of @see color using the colorMode. Defaults to @see GreasedLineMeshColorMode.SET
Optional colorsSearch playground for colors
Colors of the line segments. Defaults to empty.
Optional colors SamplingSearch playground for colorsSampling
Sampling type of the colors texture Defaults to NEAREST_NEAREST.
Optional create And Assign MaterialSearch playground for createAndAssignMaterial
If set to true a new material will be created and a new material plugin will be attached to the material. The material will be set on the mesh. If the instance option is specified in the mesh options, no material will be created/assigned. Defaults to true.
Optional dash CountSearch playground for dashCount
Optional dash OffsetSearch playground for dashOffset
Offset of the dashes along the line. 0 to 1. Defaults to 0.
Optional dash RatioSearch playground for dashRatio
Length of the dash. 0 to 1. 0.5 means half empty, half drawn. Defaults to 0.5.
Optional material TypeSearch playground for materialType
Type of the material to use to render the line. Defaults to StandardMaterial.
Optional resolutionSearch playground for resolution
Defaults to engine.getRenderWidth() and engine.getRenderHeight() Rendering resolution
Optional size AttenuationSearch playground for sizeAttenuation
If false then width units = scene units. If true then line will width be reduced. Defaults to false.
Optional use ColorsSearch playground for useColors
If true, @see colors are used, otherwise they're ignored. Defaults to false.
Optional use DashSearch playground for useDash
If true, dashing is used. Defaults to false.
Optional visibilitySearch playground for visibility
Sets the line length visibility. 0 - 0% of the line will be visible. 1 - 100% of the line will be visible.
Optional widthSearch playground for width
Line width. If sizeAttenuation os false scene units will be used for width. Defaults to 0.1 if @see sizeAttenuation is false, or to 1 if it's true.
Material options for GreasedLineBuilder