Package | alternativa.engine3d.materials |
Class | public class TextureMaterial |
Inheritance | TextureMaterial ![]() ![]() |
Subclasses | EnvironmentMaterial, LightMapMaterial, StandardMaterial, VertexLightTextureMaterial |
See also
Property | Defined By | ||
---|---|---|---|
alpha : Number = 1
Transparency. | TextureMaterial | ||
alphaThreshold : Number = 0
alphaThreshold defines starts from which value of alpha a fragment of the surface will get into transparent pass. | TextureMaterial | ||
diffuseMap : TextureResource
Diffuse map. | TextureMaterial | ||
![]() | name : String
Name of the material
| Material | |
opacityMap : TextureResource
Opacity map. | TextureMaterial | ||
opaquePass : Boolean = true
If true, perform opaque pass. | TextureMaterial | ||
transparentPass : Boolean = true
If true, perform transparent pass. | TextureMaterial |
Method | Defined By | ||
---|---|---|---|
TextureMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1)
Creates a new TextureMaterial instance. | TextureMaterial | ||
[override]
| TextureMaterial | ||
![]() | getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D. | Material |
Method | Defined By | ||
---|---|---|---|
clonePropertiesFrom(source:Material):void [override]
| TextureMaterial |
alpha | property |
public var alpha:Number = 1
Transparency.
alphaThreshold | property |
public var alphaThreshold:Number = 0
alphaThreshold defines starts from which value of alpha a fragment of the surface will get into transparent pass.
See also
diffuseMap | property |
public var diffuseMap:TextureResource
Diffuse map.
opacityMap | property |
public var opacityMap:TextureResource
Opacity map.
opaquePass | property |
public var opaquePass:Boolean = true
If true
, perform opaque pass. Parts of surface, cumulative alpha value of which is greater or equal than alphaThreshold
will be drawn within opaque pass.
See also
transparentPass | property |
public var transparentPass:Boolean = true
If true
, perform transparent pass. Parts of surface, cumulative alpha value of which is below than alphaThreshold
will be drawn within transparent pass.
See also
TextureMaterial | () | Constructor |
public function TextureMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1)
Creates a new TextureMaterial instance.
ParametersdiffuseMap:TextureResource (default = null ) — Diffuse map.
| |
opacityMap:TextureResource (default = null ) — Transparency.
| |
alpha:Number (default = 1 )
|
clone | () | method |
clonePropertiesFrom | () | method |