Packagealternativa.engine3d.materials
Classpublic class VertexLightTextureMaterial
InheritanceVertexLightTextureMaterial Inheritance TextureMaterial Inheritance Material Inheritance Object

Texture material with dynamic vertex lightning. The material is able to draw skin with the number of bones in surface no more than 41. To reduce the number of bones in surface can break the skin for more surface with fewer bones. Use the method Skin.divide(). To be drawn with this material, geometry should have UV coordinates and vertex normals​​.

See also

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


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
 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
  
VertexLightTextureMaterial(diffuse:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1)
Creates a new VertexLightTextureMaterial instance.
VertexLightTextureMaterial
  
[override]
VertexLightTextureMaterial
 Inherited
getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D.
Material
Protected Methods
 MethodDefined By
 Inherited
[override]
TextureMaterial
Constructor Detail
VertexLightTextureMaterial()Constructor
public function VertexLightTextureMaterial(diffuse:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1)

Creates a new VertexLightTextureMaterial instance.

Parameters
diffuse:TextureResource (default = null) — Diffuse map.
 
opacityMap:TextureResource (default = null) — Transparency.
 
alpha:Number (default = 1)
Method Detail
clone()method
override public function clone():Material

Returns
Material