Packagealternativa.engine3d.loaders
Classpublic class ParserMaterial
InheritanceParserMaterial Inheritance Material Inheritance Object

A material which is assigned to each object that we got as a parsing result. This material should be treated as a debugging rather than a production one. It keeps links to all possible in Alternativa3D maps (such as light map or normal map) but can render only one of them as a diffuse like TextureMaterial. To make object that you get after parsing using all these maps you should create a new StandardMaterial and pass to them all textures. Then you can assign this material to the object. Since ParserMaterial sores only links to textures, you should worry about loading it. You can use TexturesLoader for. Can draws a Skin with no more than 41 Joints per surface. See Skin.divide() for more details.

See also

alternativa.engine3d.loaders.TexturesLoader
alternativa.engine3d.materials
alternativa.engine3d.objects.Skin.divide()


Public Properties
 PropertyDefined By
  colors : Object
List of colors, that can be assigned to each channel instead of texture.
ParserMaterial
 Inheritedname : String
Name of the material
Material
  renderChannel : String = diffuse
Channel, that will be rendered.
ParserMaterial
  textures : Object
List of ExternalTextureResource, that you can load with a TexturesLoader.
ParserMaterial
  transparency : Number = 0
Transparency of material
ParserMaterial
Public Methods
 MethodDefined By
  
ParserMaterial
 Inherited
Duplicates an instance of a Material.
Material
 Inherited
getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D.
Material
Protected Methods
 MethodDefined By
 Inherited
Duplicates basic properties.
Material
Property Detail
colorsproperty
public var colors:Object

List of colors, that can be assigned to each channel instead of texture. Variants: ambient, emission, diffuse, specular, shininess, reflective, transparent, bump.

renderChannelproperty 
public var renderChannel:String = diffuse

Channel, that will be rendered. Possible options: ambient, emission, diffuse, specular, shininess, reflective, transparent, bump.

texturesproperty 
public var textures:Object

List of ExternalTextureResource, that you can load with a TexturesLoader. Keys of objects are names of channels. Variants: ambient, emission, diffuse, specular, shininess, reflective, transparent, bump.

See also

transparencyproperty 
public var transparency:Number = 0

Transparency of material

Constructor Detail
ParserMaterial()Constructor
public function ParserMaterial()