Class LineEdgesRenderer
Hierarchy
- EdgesRenderer
- LineEdgesRenderer
Index
Constructors
constructor
This constructor turns off auto generating edges line in Edges Renderer to make it here.
Parameters
source: AbstractMesh
LineMesh used to generate edges
Optional epsilon: number
not important (specified angle for edge detection)
Optional checkVerticesInsteadOfIndices: boolean
not important for LineMesh
Returns LineEdgesRenderer
Properties
custom InstancesSearch playground for customInstances
List of instances to render in case the source mesh has instances
edges Width Scaler For OrthographicSearch playground for edgesWidthScalerForOrthographic
Define the size of the edges with an orthographic camera
edges Width Scaler For PerspectiveSearch playground for edgesWidthScalerForPerspective
Define the size of the edges with a perspective camera
is EnabledSearch playground for isEnabled
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
Gets or sets the shader used to draw the lines
Parameters
shader: ShaderMaterial
Returns void
lines Indices
Gets the indices generated by the edge renderer
Returns readonly number[]
lines Normals
Gets the normals generated by the edge renderer
Returns readonly number[]
lines Positions
Gets the vertices generated by the edge renderer
Returns readonly number[]
Methods
_generate Edges LinesSearch playground for _generateEdgesLines
Generate edges for each line in LinesMesh. Every Line should be rendered as edge.
Returns void
disposeSearch playground for dispose
Releases the required resources for the edges renderer
Returns void
is ReadySearch playground for isReady
Checks whether or not the edges renderer is ready to render.
Returns boolean
true if ready, otherwise false.
renderSearch playground for render
Renders the edges of the attached mesh,
Returns void
LineEdgesRenderer for LineMeshes to remove unnecessary triangulation