Creates an instance of abstract material component.
The base attribute can be fine without re-make Material
Object attr of abstract subscribe component
Change list of abstract subscribe component
Need update of abstract subscribe component
Sets the alpha value to be used when running an alpha test. The material will not be renderered if the opacity is lower than this value. Default is 0.
Enables alpha to coverage. Can only be used with MSAA-enabled contexts (meaning when the renderer was created with antialias parameter set to true). Default is false.
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.
Three Type | Value String(case insensitive) |
---|---|
THREE.ZeroFactor | ZeroFactor , Zero |
THREE.OneFactor | OneFactor , One |
THREE.SrcColorFactor | SrcColorFactor , SrcColor |
THREE.OneMinusSrcColorFactor | OneMinusSrcColorFactor , OneMinusSrcColor |
THREE.SrcAlphaFactor | SrcAlphaFactor , SrcAlpha |
THREE.OneMinusSrcAlphaFactor | OneMinusSrcAlphaFactor , OneMinusSrcAlpha |
THREE.DstAlphaFactor | DstAlphaFactor , DstAlpha |
THREE.OneMinusDstAlphaFactor | OneMinusDstAlphaFactor , OneMinusDstAlpha |
THREE.DstColorFactor | DstColorFactor , DstColor |
THREE.OneMinusDstColorFactor | OneMinusDstColorFactor , OneMinusDstColor |
The transparency of the Material.blendDst. Uses Material.blendDst value if null. Default is null.
Blending equation to use when applying blending. Default is AddEquation. See the blending equation constants for all possible values. The material's blending must be set to CustomBlending for this to have any effect.
Three Type | Value String(case insensitive) |
---|---|
THREE.AddEquation | AddEquation , Add |
THREE.SubtractEquation | SubtractEquation , Subtract |
THREE.ReverseSubtractEquation | ReverseSubtractEquation , ReverseSubtract |
THREE.MinEquation | MinEquation , Min |
THREE.MaxEquation | MaxEquation , Max |
The transparency of the Material.blendEquation. Uses Material.blendEquation value if null. Default is null.
Blending source. Default is SrcAlphaFactor. See the source factors constants for all possible values. The material's blending must be set to CustomBlending for this to have any effect.
Three Type | Value String(case insensitive) |
---|---|
THREE.NoBlending | NoBlending , No |
THREE.NormalBlending | NormalBlending , Normal |
THREE.AdditiveBlending | AdditiveBlending , Additive |
THREE.SubtractiveBlending | SubtractiveBlending , Subtractive |
THREE.MultiplyBlending | MultiplyBlending , Multiply |
THREE.CustomBlending | CustomBlending , Custom |
The transparency of the Material.blendSrc. Uses Material.blendSrc value if null. Default is null.
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.
Three Type | Value String(case insensitive) |
---|---|
THREE.NoBlending | NoBlending, No |
THREE.NormalBlending | NormalBlending, Normal |
THREE.AdditiveBlending | AdditiveBlending, Additive |
THREE.SubtractiveBlending | SubtractiveBlending, Subtractive |
THREE.MultiplyBlending | MultiplyBlending, Multiply |
THREE.CustomBlending | CustomBlending, Custom |
Changes the behavior of clipping planes so that only their intersection is clipped, rather than their union. Default is false.
Defines whether to clip shadows according to the clipping planes specified on this material. Default is false.
User-defined clipping planes specified as THREE.Plane objects in world space. These planes apply to the objects this material is attached to. Points in space whose signed distance to the plane is negative are clipped (not rendered). This requires WebGLRenderer.localClippingEnabled to be true. See the [example:webgl_clipping_intersection WebGL / clipping /intersection] example. Default is null.
Content children of abstract material component
Whether to render the material's color. This can be used in conjunction with a mesh's renderOrder property to create invisible objects that occlude other objects. Default is true.
The control of abstract material component
Debug this Object
Custom defines to be injected into the shader. These are passed in form of an object literal, with key/value pairs. { MY_CUSTOM_DEFINE: '' , PI2: Math.PI * 2 }. The pairs are defined in both vertex and fragment shaders. Default is undefined.
Which depth function to use. Default is LessEqualDepth. See the depth mode constants for all possible values.
Three Type | Value String(case insensitive) |
---|---|
THREE.NeverDepth | NeverDepth , Never |
THREE.AlwaysDepth | AlwaysDepth , Always |
THREE.LessDepth | LessDepth , Less |
THREE.LessEqualDepth | LessEqualDepth , LessEqual |
THREE.EqualDepth | EqualDepth , Equal |
THREE.GreaterEqualDepth | GreaterEqualDepth , GreaterEqual |
THREE.GreaterDepth | GreaterDepth , Greater |
THREE.NotEqualDepth | NotEqualDepth , NotEqual |
Whether to have depth test enabled when rendering this material. Default is true.
Whether rendering this material has any effect on the depth buffer. Default is true. When drawing 2D overlays it can be useful to disable the depth writing in order to layer several things together without creating z-index artifacts.
Whether to apply dithering to the color to remove the appearance of banding. Default is false.
Enabled or Not
Whether the material is affected by fog. Default is true.
The Id of abstract subscribe component
The Material of abstract material component
The Material type. can be material, background etc.
The name of the object (doesn't need to be unique). Default is an empty string.
An callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.
Will be called when before destory. The argument will be the loaded self
Will be called when load completes. The argument will be the loaded self
Float in the range of 0.0 - 1.0 indicating how transparent the material is. A value of 0.0 indicates fully transparent, 1.0 is fully opaque. If the material's transparent property is not set to true, the material will remain fully opaque and this value will only affect its color. Default is 1.0.
The override params
The Parent of abstract subscribe component
Whether to use polygon offset. Default is false. This corresponds to the GL_POLYGON_OFFSET_FILL WebGL feature.
Sets the polygon offset factor. Default is 0.
Sets the polygon offset units. Default is 0.
Override the renderer's default precision for this material. Can be "highp", "mediump" or "lowp". Default is null.
Notice - case insensitive.
Whether to premultiply the alpha (transparency) value. See [Example:webgl_materials_physical_transmission WebGL / Materials / Physical / Transmission] for an example of the difference. Default is false.
highp, mediump, lowp
The refIndex of material component
if the material of mesh is array use this index
The refName of material component
The refer Material. When this value is not null will override the material with clone.
Defines which side of faces cast shadows. When set, can be THREE.FrontSide, THREE.BackSide, or THREE.DoubleSide. Default is null. If null, the side casting shadows is determined as follows:
Three Type | Value String(case insensitive) |
---|---|
THREE.FrontSide | FrontSide , Front |
THREE.BackSide | BackSide , Back |
THREE.DoubleSide | DoubleSide , Double |
Defines which side of faces will be rendered - front, back or both. Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.
Three Type | Value String(case insensitive) |
---|---|
THREE.FrontSide | FrontSide , Front |
THREE.BackSide | BackSide , Back |
THREE.DoubleSide | DoubleSide , Double |
Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operations constants for all possible values.
Three Type | Value String(case insensitive) |
---|---|
THREE.ZeroStencilOp | ZeroStencilOp , ZeroStencil |
THREE.KeepStencilOp | KeepStencilOp , KeepStencil |
THREE.ReplaceStencilOp | ReplaceStencilOp , ReplaceStencil |
THREE.IncrementStencilOp | IncrementStencilOp , IncrementStencil |
THREE.DecrementStencilOp | DecrementStencilOp , DecrementStencil |
THREE.IncrementWrapStencilOp | IncrementWrapStencilOp , IncrementWrapStencil |
THREE.DecrementWrapStencilOp | DecrementWrapStencilOp , DecrementWrapStencil |
THREE.InvertStencilOp | InvertStencilOp , InvertStencil |
The stencil comparison function to use. Default is AlwaysStencilFunc. See stencil function constants for all possible values.
Notice - case insensitive.
The bit mask to use when comparing against the stencil buffer. Default is 0xFF.
The value to use when performing stencil comparisons or stencil operations. Default is 0.
Three Type | Value String(case insensitive) |
---|---|
THREE.NeverStencilFunc | NeverStencilFunc , NeverStencil |
THREE.LessStencilFunc | LessStencilFunc , LessStencil |
THREE.EqualStencilFunc | EqualStencilFunc , EqualStencil |
THREE.LessEqualStencilFunc | LessEqualStencilFunc , LessEqualStencil |
THREE.GreaterStencilFunc | GreaterStencilFunc , GreaterStencil |
THREE.NotEqualStencilFunc | NotEqualStencilFunc , NotEqualStencil |
THREE.GreaterEqualStencilFunc | GreaterEqualStencilFunc , GreaterEqualStencil |
THREE.AlwaysStencilFunc | AlwaysStencilFunc , AlwaysStencil |
Whether stencil operations are performed against the stencil buffer. In order to perform writes or comparisons against the stencil buffer this value must be true. Default is false.
The bit mask to use when writing to the stencil buffer. Default is 0xFF.
Which stencil operation to perform when the comparison function returns true but the depth test fails. Default is KeepStencilOp. See the stencil operations constants for all possible values.
Three Type | Value String(case insensitive) |
---|---|
THREE.ZeroStencilOp | ZeroStencilOp , ZeroStencil |
THREE.KeepStencilOp | KeepStencilOp , KeepStencil |
THREE.ReplaceStencilOp | ReplaceStencilOp , ReplaceStencil |
THREE.IncrementStencilOp | IncrementStencilOp , IncrementStencil |
THREE.DecrementStencilOp | DecrementStencilOp , DecrementStencil |
THREE.IncrementWrapStencilOp | IncrementWrapStencilOp , IncrementWrapStencil |
THREE.DecrementWrapStencilOp | DecrementWrapStencilOp , DecrementWrapStencil |
THREE.InvertStencilOp | InvertStencilOp , InvertStencil |
Which stencil operation to perform when the comparison function returns true and the depth test passes. Default is KeepStencilOp. See the stencil operations constants for all possible values.
Three Type | Value String(case insensitive) |
---|---|
THREE.ZeroStencilOp | ZeroStencilOp , ZeroStencil |
THREE.KeepStencilOp | KeepStencilOp , KeepStencil |
THREE.ReplaceStencilOp | ReplaceStencilOp , ReplaceStencil |
THREE.IncrementStencilOp | IncrementStencilOp , IncrementStencil |
THREE.DecrementStencilOp | DecrementStencilOp , DecrementStencil |
THREE.IncrementWrapStencilOp | IncrementWrapStencilOp , IncrementWrapStencil |
THREE.DecrementWrapStencilOp | DecrementWrapStencilOp , DecrementWrapStencil |
THREE.InvertStencilOp | InvertStencilOp , InvertStencil |
Subscribe type of abstract subscribe component
Defines whether this material is tone mapped according to the renderer's toneMapping setting. Default is true.
Defines whether this material is transparent. This has an effect on rendering as transparent objects need special treatment and are rendered after non-transparent objects. When set to true, the extent to which the material is transparent is controlled by setting its opacity property. Default is false.
Tween animation params
An object that can be used to store custom data about the Object3D. It should not hold references to functions as these will not be cloned.
Defines whether vertex coloring is used. Default is false.
Defines whether this material is visible. Default is true.
Export this Object to window global variables
Sets need update
Adds changes
Applys changes
Calls on load
Checks changes
changes
Clears changes
Consoles log
Consoles log time
Destroys local component
Disposes abstract subscribe component
Gets changes
changes
Gets id
id
Gets material parameters
material parameters
Gets object
object
Gets subscribe
subscribe
Gets timeout 특정 시간후에 이벤트 발생시키기
timeout
Gets user data
Gets vertex colors
true if vertex colors
Inits local component
local component
Determines whether id euals is
true if id euals
Determines whether material type is
true if material type
A callback method that is invoked immediately after Angular has completed initialization of all of the directive's content. It is invoked only once when the directive is instantiated.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.
The changed properties.
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Resets tween
Runs subscribe next
Sets object
Sets object3d
Sets parent
true if parent
Sets subscribe next
Sets subscribe type
Sets tween
Sets tween target
Sets user data
Subscribes list query
Subscribes list query change
Subscribes refer
Subscribes refer list
subscribe refer
subscribe refer list
subscription
subscription
unSets object3d
Updates input params
Generated using TypeDoc
NgxAbstractMaterialComponent
See the ngx3js docs page for details. See the ngx material page for a live demo.