Packagealternativa.engine3d.materials
Classpublic class LightMapMaterial
InheritanceLightMapMaterial Inheritance TextureMaterial Inheritance Material Inheritance Object

Texture material which supports light map. Can draw a Skin with no more than 41 Joints per surface. See Skin.divide() for more details. To be drawn with this material, geometry should have UV coordinates. Different UV-channels can be used for diffuse texture and light map.

See also

alternativa.engine3d.objects.Skin.divide()
alternativa.engine3d.core.VertexAttributes.TEXCOORDS


Public Properties
 PropertyDefined By
 Inheritedalpha : Number = 1
Transparency.
TextureMaterial
 InheritedalphaThreshold : Number = 0
alphaThreshold defines starts from which value of alpha a fragment of the surface will get into transparent pass.
TextureMaterial
 InheriteddiffuseMap : TextureResource
Diffuse map.
TextureMaterial
  lightMap : TextureResource
Light map.
LightMapMaterial
  lightMapChannel : uint = 0
Number of the UV-channel for light map.
LightMapMaterial
 Inheritedname : String
Name of the material
Material
 InheritedopacityMap : TextureResource
Opacity map.
TextureMaterial
 InheritedopaquePass : Boolean = true
If true, perform opaque pass.
TextureMaterial
 InheritedtransparentPass : Boolean = true
If true, perform transparent pass.
TextureMaterial
Public Methods
 MethodDefined By
  
LightMapMaterial(diffuseMap:TextureResource = null, lightMap:TextureResource = null, lightMapChannel:uint = 0, opacityMap:TextureResource = null)
Creates a new LightMapMaterial instance.
LightMapMaterial
  
[override]
LightMapMaterial
 Inherited
getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D.
Material
Protected Methods
 MethodDefined By
 Inherited
[override]
TextureMaterial
Property Detail
lightMapproperty
public var lightMap:TextureResource

Light map.

lightMapChannelproperty 
public var lightMapChannel:uint = 0

Number of the UV-channel for light map.

Constructor Detail
LightMapMaterial()Constructor
public function LightMapMaterial(diffuseMap:TextureResource = null, lightMap:TextureResource = null, lightMapChannel:uint = 0, opacityMap:TextureResource = null)

Creates a new LightMapMaterial instance.

Parameters
diffuseMap:TextureResource (default = null) — Diffuse texture.
 
lightMap:TextureResource (default = null) — Light map.
 
lightMapChannel:uint (default = 0) — Number of the UV-channel for light map.
 
opacityMap:TextureResource (default = null)
Method Detail
clone()method
override public function clone():Material

Returns
Material