| Package | alternativa.engine3d.materials |
| Class | public class StandardMaterial |
| Inheritance | StandardMaterial TextureMaterial Material Object |
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 | |
| glossiness : Number = 100
Glossiness. | StandardMaterial | ||
| glossinessMap : TextureResource
Glossiness map. | StandardMaterial | ||
| lightMap : TextureResource
Light map. | StandardMaterial | ||
| lightMapChannel : uint = 0
Number of the UV-channel for light map. | StandardMaterial | ||
![]() | name : String
Name of the material
| Material | |
| normalMap : TextureResource
Normal map. | StandardMaterial | ||
| normalMapSpace : int
Type of the normal map. | StandardMaterial | ||
![]() | opacityMap : TextureResource
Opacity map. | TextureMaterial | |
![]() | opaquePass : Boolean = true
If true, perform opaque pass. | TextureMaterial | |
| specularMap : TextureResource
Specular map. | StandardMaterial | ||
| specularPower : Number = 1
Brightness of a flare. | StandardMaterial | ||
![]() | transparentPass : Boolean = true
If true, perform transparent pass. | TextureMaterial | |
| Method | Defined By | ||
|---|---|---|---|
StandardMaterial(diffuseMap:TextureResource = null, normalMap:TextureResource = null, specularMap:TextureResource = null, glossinessMap:TextureResource = null, opacityMap:TextureResource = null)
Creates a new StandardMaterial instance. | StandardMaterial | ||
[override]
| StandardMaterial | ||
![]() | getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D. | Material | |
| Method | Defined By | ||
|---|---|---|---|
clonePropertiesFrom(source:Material):void [override]
| StandardMaterial | ||
| glossiness | property |
public var glossiness:Number = 100
Glossiness. Multiplies with glossinessMap value.
| glossinessMap | property |
public var glossinessMap:TextureResourceGlossiness map.
| lightMap | property |
public var lightMap:TextureResourceLight map.
| lightMapChannel | property |
public var lightMapChannel:uint = 0Number of the UV-channel for light map.
| normalMap | property |
public var normalMap:TextureResourceNormal map.
| normalMapSpace | property |
normalMapSpace:int
Type of the normal map. Should be defined by constants of NormalMapSpace class.
The default value is NormalMapSpace.TANGENT.
public function get normalMapSpace():int public function set normalMapSpace(value:int):voidSee also
| specularMap | property |
public var specularMap:TextureResourceSpecular map.
| specularPower | property |
public var specularPower:Number = 1
Brightness of a flare. Multiplies with specularMap value.
| StandardMaterial | () | Constructor |
public function StandardMaterial(diffuseMap:TextureResource = null, normalMap:TextureResource = null, specularMap:TextureResource = null, glossinessMap:TextureResource = null, opacityMap:TextureResource = null)Creates a new StandardMaterial instance.
ParametersdiffuseMap:TextureResource (default = null) — Diffuse map.
| |
normalMap:TextureResource (default = null) — Normal map.
| |
specularMap:TextureResource (default = null) — Specular map.
| |
glossinessMap:TextureResource (default = null) — Glossiness map.
| |
opacityMap:TextureResource (default = null) — Opacity map.
|
| clone | () | method |
| clonePropertiesFrom | () | method |