MeshBasicMaterial
Core.MeshBasicMaterial exported from @manycore/aholo-viewer.
Hierarchy
- MeshBasicMaterial<SourceTexture>
- MeshBasicMaterial
Properties
is Dynamic Shape
Inherited from BaseMeshBasicMaterial.isDynamicShape
is Volume Rendering
Mark this material uses volume like rendering technology. Hint the engine that some effect is disabled
Inherited from BaseMeshBasicMaterial.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 BaseMeshBasicMaterial.MAX_TEXTURES
name
Optional name of the object (doesn't need to be unique). Default is an empty string.
Inherited from BaseMeshBasicMaterial.name
id
Unique number for this material instance.
Inherited from BaseMeshBasicMaterial.id
transparentfalse
If use transparent effect, this value must be set to true to enable blending.
Inherited from BaseMeshBasicMaterial.transparent
visibletrue
Defines whether this material is visible.
Inherited from BaseMeshBasicMaterial.visible
program Id
The id of shader program which this material shader belongs to.
Inherited from BaseMeshBasicMaterial.programId
side
Set which side of the object will be seen on screen.
Inherited from BaseMeshBasicMaterial.side
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.
Inherited from BaseMeshBasicMaterial.blending
blend SrcSrcAlphaFactor
Blending source. Default is SrcAlphaFactor. See the source factors constants for all possible values.
Inherited from BaseMeshBasicMaterial.blendSrc
blend DstOneMinusSrcAlpha
Blending destination. Default is OneMinusSrcAlphaFactor. See the destination factors constants for all possible values.
Inherited from BaseMeshBasicMaterial.blendDst
blend EquationAdd
Blending equation to use when applying blending. Default is AddEquation. See the blending equation constants for all possible values.
Inherited from BaseMeshBasicMaterial.blendEquation
blend Src Alpha
The transparency of the blendSrc .
Inherited from BaseMeshBasicMaterial.blendSrcAlpha
blend Dst Alpha
The transparency of the blendDst .
Inherited from BaseMeshBasicMaterial.blendDstAlpha
blend Equation Alpha
The transparency of the blendEquation .
Inherited from BaseMeshBasicMaterial.blendEquationAlpha
stencil Writefalse
Whether rendering this material has any effect on the stencil buffer.
Inherited from BaseMeshBasicMaterial.stencilWrite
stencil Write Mask0xFF
The bit mask to use when writing to the stencil buffer.
Inherited from BaseMeshBasicMaterial.stencilWriteMask
stencil Func Mask0xFF
The bit mask to use when comparing against the stencil buffer.
Inherited from BaseMeshBasicMaterial.stencilFuncMask
stencil FuncAlwaysStencilFunc
The stencil comparison function to use.
Inherited from BaseMeshBasicMaterial.stencilFunc
stencil Ref0
The value to use when performing stencil comparisons or stencil operations.
Inherited from BaseMeshBasicMaterial.stencilRef
stencil FailKeepStencilOp
Which stencil operation to perform when the comparison function returns false.
Inherited from BaseMeshBasicMaterial.stencilFail
stencil Z FailKeepStencilOp
Which stencil operation to perform when the comparison function returns true but the depth test fails.
Inherited from BaseMeshBasicMaterial.stencilZFail
stencil Z PassKeepStencilOp
Which stencil operation to perform when the comparison function returns true and the depth test passes.
Inherited from BaseMeshBasicMaterial.stencilZPass
depth FuncLessEqualDepth
Which depth function to use.
Inherited from BaseMeshBasicMaterial.depthFunc
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.
Inherited from BaseMeshBasicMaterial.depthTest
depth Writetrue
Whether rendering this material has any effect on the depth buffer.
Inherited from BaseMeshBasicMaterial.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 BaseMeshBasicMaterial.colorWrite
color Write Masks
Inherited from FatLineMaterial.colorWriteMasks
polygon Offsetfalse
Whether to use polygon offset.
Inherited from BaseMeshBasicMaterial.polygonOffset
polygon Offset Factor0
Sets the polygon offset factor.
Inherited from BaseMeshBasicMaterial.polygonOffsetFactor
polygon Offset Units0
Sets the polygon offset units.
Inherited from BaseMeshBasicMaterial.polygonOffsetUnits
premultiplied Alphafalse
Whether to premultiply the alpha (transparency) value.
Inherited from BaseMeshBasicMaterial.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 BaseMeshBasicMaterial.onBeforeRender
color Write Mask
Inherited from FatLineMaterial.colorWriteMask
enable Scene Clipping
Inherited from BaseMeshBasicMaterial.enableSceneClipping
is Mesh Basic Material
Inherited from BaseMeshBasicMaterial.isMeshBasicMaterial
Readonlycolor
The basic color of object. User can set texture by this.
Inherited from BaseMeshBasicMaterial.color
Readonlyalpha
The Transparency of object.
Inherited from BaseMeshBasicMaterial.alpha
uv Transform
Pick<
ReadonlyMarked,
| "_readonly_mark"
| "cloneReadonly"
| "clone"
| "equals"
| "getSerializeData"
| "getNumberCount"
| "toArray"
| "elements"
| "applyToBufferAttribute"
| "determinant"
| "transposeIntoArray"
| "applyToArray"
| "applyInverse"
| "decompose",
>,
>
Change the uv data by this matrix.
Inherited from BaseMeshBasicMaterial.uvTransform
enable Vertex Color
Inherited from BaseMeshBasicMaterial.enableVertexColor
Readonlyuser Data
Inherited from MeshPhongMaterial.userData
_ uuid
Inherited from BaseMeshBasicMaterial._uuid
uuid
Inherited from BaseMeshBasicMaterial.uuid
_ listeners
Inherited from BaseMeshBasicMaterial._listeners
Accessors
business Tag
- get businessTag(): string
Returns string
Inherited from BaseMeshBasicMaterial.businessTag
- set businessTag(v: string): void
Parameters
- v: string
Returns void
Inherited from BaseMeshBasicMaterial.businessTag
Methods
get Components
Returns readonly ShaderComponent[]
Inherited from BaseMeshBasicMaterial.getComponents
delete Component
Parameters
- index: number
Returns void
Inherited from BaseMeshBasicMaterial.deleteComponent
add Component
Parameters
- c: ShaderComponent
- index: number
Returns void
Inherited from BaseMeshBasicMaterial.addComponent
refresh Instance In Building
Parameters
- enable: boolean
Returns void
Inherited from BaseMeshBasicMaterial.refreshInstanceInBuilding
set Color Write Masks
Parameters
- r: boolean
- g: boolean
- b: boolean
- a: boolean
Returns void
Inherited from BaseMeshBasicMaterial.setColorWriteMasks
notify Material Property Changed
When user change the material property manually, this method need to use to refresh data.
Returns void
Inherited from BaseMeshBasicMaterial.notifyMaterialPropertyChanged
get UUID
UUID of this material instance. This gets automatically assigned, so this shouldn't be edited.
Returns string
Inherited from BaseMeshBasicMaterial.getUUID
notify Recompile Shader
Reset the key of shader and force engine to compile shader again.
Returns void
Inherited from BaseMeshBasicMaterial.notifyRecompileShader
copy Base
Copy basic properties from other material.
Parameters
- other: Material
the source of copied data
Returns void
Inherited from BaseMeshBasicMaterial.copyBase
- other: Material
destroy All Resources Owned
Returns void
Inherited from BaseMeshBasicMaterial.destroyAllResourcesOwned
free All Gpu Resource Owned
Returns void
Inherited from BaseMeshBasicMaterial.freeAllGpuResourceOwned
extend Shader Shape
Parameters
- builder: ShaderBuilder
- r: ShaderComponentRegistry
Returns void
Inherited from BaseMeshBasicMaterial.extendShaderShape
compute Shape Key
Parameters
- r: ShaderComponentRegistry
Returns string
Inherited from BaseMeshBasicMaterial.computeShapeKey
update Shape Uniforms
Parameters
- p: WGLProgram
- r: ShaderComponentRegistry
Returns void
Inherited from BaseMeshBasicMaterial.updateShapeUniforms
free GPU
Make engine clear the current material's data in Ubo.
Returns void
Inherited from BaseMeshBasicMaterial.freeGPU
class Name
The name of instance's class.
Returns string
Inherited from BaseMeshBasicMaterial.className
set Values
Change the corresponding attribute according to the values of given MeshBasicMaterialParameters| parameters.
Parameters
- values: MeshBasicMaterialParameters<SourceTexture>
a object of specified type contains parameters.
Returns void
Inherited from BaseMeshBasicMaterial.setValues
- values: MeshBasicMaterialParameters<SourceTexture>
copy
Copy the data to this instance from other instance.
Parameters
- other: MeshBasicMaterial<SourceTexture>
the source of copied data
Returns this
Inherited from BaseMeshBasicMaterial.copy
- other: MeshBasicMaterial<SourceTexture>
clone
Return a cloned instance of this class.
Returns MeshBasicMaterial<SourceTexture>
Inherited from BaseMeshBasicMaterial.clone
serialize
Store the attributes of this class into string as serializing format.
Parameters
- ctx: Serializer
an instance used to store the data of scene objects.
Returns void
Inherited from BaseMeshBasicMaterial.serialize
- ctx: Serializer
deserialize
Parse the data for this class from string according to serializing format.
Parameters
- ctx: Deserializer
an instance give the method to take the data for attribute.
Returns void
Inherited from BaseMeshBasicMaterial.deserialize
- ctx: Deserializer
mark Business Tag
Parameters
- v: string
Returns this
Inherited from BaseMeshBasicMaterial.markBusinessTag
is Destroyed
Returns boolean
Inherited from BaseMeshBasicMaterial.isDestroyed
destroy
Returns void
Inherited from BaseMeshBasicMaterial.destroy
validate
Returns void
Inherited from BaseMeshBasicMaterial.validate
on
once
has
off
emit
Active the event and call the registered listener.
Parameters
- type: EventType<never>
Returns void
Inherited from BaseMeshBasicMaterial.emit
clear All Listeners
Removes all listeners from listening list.
Returns void
Inherited from BaseMeshBasicMaterial.clearAllListeners
Mark this shape of this material is largely affect by shader. Hint the engine that pick, culling is disabled