PointsMaterial
This material is specified used to change performance of Points
Hierarchy
- Material
- PointsMaterial
Properties
is Dynamic Shape
Mark this shape of this material is largely affect by shader. Hint the engine that pick, culling is disabled
Inherited from Material.isDynamicShape
is Volume Rendering
Mark this material uses volume like rendering technology. Hint the engine that some effect is disabled
Inherited from Material.isVolumeRendering
Static ReadonlyMAX_ TEXTURES
max texture count, just in case some platform will take use of some channels by default, so set to 6 instead of 8
Inherited from Material.MAX_TEXTURES
name
Optional name of the object (doesn't need to be unique). Default is an empty string.
id
Unique number for this material instance.
transparentfalse
If use transparent effect, this value must be set to true to enable blending.
Inherited from Material.transparent
visibletrue
Defines whether this material is visible.
program Id
The id of shader program which this material shader belongs to.
side
Set which side of the object will be seen on screen.
blendingNormalBlending
Which blending to use when displaying objects with this material. This must be set to CustomBlending to use custom blendSrc , blendDst or blendEquation . See the blending mode constants for all possible values. Default is NormalBlending.
blend SrcSrcAlphaFactor
Blending source. Default is SrcAlphaFactor. See the source factors constants for all possible values.
blend DstOneMinusSrcAlpha
Blending destination. Default is OneMinusSrcAlphaFactor. See the destination factors constants for all possible values.
blend EquationAdd
Blending equation to use when applying blending. Default is AddEquation. See the blending equation constants for all possible values.
Inherited from Material.blendEquation
blend Src Alpha
The transparency of the blendSrc .
Inherited from Material.blendSrcAlpha
blend Dst Alpha
The transparency of the blendDst .
Inherited from Material.blendDstAlpha
blend Equation Alpha
The transparency of the blendEquation .
Inherited from Material.blendEquationAlpha
stencil Writefalse
Whether rendering this material has any effect on the stencil buffer.
Inherited from Material.stencilWrite
stencil Write Mask0xFF
The bit mask to use when writing to the stencil buffer.
Inherited from Material.stencilWriteMask
stencil Func Mask0xFF
The bit mask to use when comparing against the stencil buffer.
Inherited from Material.stencilFuncMask
stencil FuncAlwaysStencilFunc
The stencil comparison function to use.
Inherited from Material.stencilFunc
stencil Ref0
The value to use when performing stencil comparisons or stencil operations.
Inherited from Material.stencilRef
stencil FailKeepStencilOp
Which stencil operation to perform when the comparison function returns false.
Inherited from Material.stencilFail
stencil Z FailKeepStencilOp
Which stencil operation to perform when the comparison function returns true but the depth test fails.
Inherited from Material.stencilZFail
stencil Z PassKeepStencilOp
Which stencil operation to perform when the comparison function returns true and the depth test passes.
Inherited from Material.stencilZPass
depth FuncLessEqualDepth
Which depth function to use.
depth Testtrue
Whether to have depth test enabled when rendering this material. If this is set to false, this object's occluding relationship will depend on Object3D.renderOrder| renderOrder.
depth Writetrue
Whether rendering this material has any effect on the depth buffer.
Inherited from Material.depthWrite
color Writetrue
Whether to render the material's color. This can be used in conjunction with a Object3D.renderOrder| renderOrder property to create invisible objects that occlude other objects.
Inherited from Material.colorWrite
color Write Masks
Inherited from Material.colorWriteMasks
polygon Offsetfalse
Whether to use polygon offset.
Inherited from Material.polygonOffset
polygon Offset Factor0
Sets the polygon offset factor.
Inherited from Material.polygonOffsetFactor
polygon Offset Units0
Sets the polygon offset units.
Inherited from Material.polygonOffsetUnits
premultiplied Alphafalse
Whether to premultiply the alpha (transparency) value.
Inherited from Material.premultipliedAlpha
on Before Render
An optionally overriding method for extents to get data from renderer before update uniforms.
- (renderer: Renderer): void
Parameters
- renderer: Renderer
instance of renderer for engine.
Returns void
- renderer: Renderer
Inherited from Material.onBeforeRender
color Write Mask
Inherited from Material.colorWriteMask
size
color
enable Size Attenuation
enable Vertex Color
Readonlyuser Data
_ uuid
uuid
_ listeners
Inherited from Material._listeners
Accessors
business Tag
- get businessTag(): string
Returns string
Inherited from Material.businessTag
- set businessTag(v: string): void
Parameters
- v: string
Returns void
Inherited from Material.businessTag
Methods
get Components
Returns readonly ShaderComponent[]
Inherited from Material.getComponents
delete Component
add Component
refresh Instance In Building
set Color Write Masks
Parameters
- r: boolean
- g: boolean
- b: boolean
- a: boolean
Returns void
Inherited from Material.setColorWriteMasks
notify Material Property Changed
When user change the material property manually, this method need to use to refresh data.
Returns void
Inherited from Material.notifyMaterialPropertyChanged
get UUID
notify Recompile Shader
Reset the key of shader and force engine to compile shader again.
Returns void
Inherited from Material.notifyRecompileShader
copy Base
free GPU
destroy All Resources Owned
Returns void
Inherited from Material.destroyAllResourcesOwned
free All Gpu Resource Owned
Returns void
Inherited from Material.freeAllGpuResourceOwned
set Values
class Name
copy
clone
serialize
deserialize
Parse the data for this class from string according to serializing format.
Parameters
- ctx: Deserializer
this parameter has not supported external Deserializer yet. It may cause that this method can not be used directly.
Returns void
Overrides Material.deserialize
- ctx: Deserializer
mark Business Tag
is Destroyed
Returns boolean
Inherited from Material.isDestroyed
This material is specified used to change performance of Points