Class LineEdgesRenderer
Hierarchy (View Summary)
- EdgesRenderer
- LineEdgesRenderer
Constructors
constructor
-
new LineEdgesRenderer(
source: AbstractMesh,
epsilon?: number,
checkVerticesInsteadOfIndices?: boolean,
): LineEdgesRendererThis constructor turns off auto generating edges line in Edges Renderer to make it here.
Parameters
- source: AbstractMesh
LineMesh used to generate edges
- epsilon: number = 0.95
not important (specified angle for edge detection)
- checkVerticesInsteadOfIndices: boolean = false
not important for LineMesh
Returns LineEdgesRenderer
- source: AbstractMesh
Properties
custom Instances
List of instances to render in case the source mesh has instances
edges Width Scaler For Orthographic
Define the size of the edges with an orthographic camera
edges Width Scaler For Perspective
Define the size of the edges with a perspective camera
is Enabled
Gets or sets a boolean indicating if the edgesRenderer is active
Accessors
line Shader
-
Gets or sets the shader used to draw the lines
Returns ShaderMaterial
-
Parameters
- shader: ShaderMaterial
Returns void
lines Indices
-
get linesIndices(): readonly number[]
Gets the indices generated by the edge renderer
Returns readonly number[]
lines Normals
-
get linesNormals(): readonly number[]
Gets the normals generated by the edge renderer
Returns readonly number[]
lines Positions
-
get linesPositions(): readonly number[]
Gets the vertices generated by the edge renderer
Returns readonly number[]
shader Language
-
get shaderLanguage(): ShaderLanguage
Gets the shader language used.
Returns ShaderLanguage
Methods
_ generate Edges Lines
-
Generate edges for each line in LinesMesh. Every Line should be rendered as edge.
Returns void
dispose
-
Releases the required resources for the edges renderer
Returns void
is Ready
-
Checks whether or not the edges renderer is ready to render.
Parameters
OptionaluseInstances: booleanDefines whether the instanced shader variant should be checked. If omitted, the current rendering state is used.
Returns boolean
true if ready, otherwise false.
render
-
Renders the edges of the attached mesh,
Returns void
LineEdgesRenderer for LineMeshes to remove unnecessary triangulation