Package | alternativa.engine3d.loaders |
Class | public class ParserMaterial |
Inheritance | ParserMaterial ![]() ![]() |
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
Property | Defined By | ||
---|---|---|---|
colors : Object
List of colors, that can be assigned to each channel instead of texture. | ParserMaterial | ||
![]() | name : 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 |
Method | Defined By | ||
---|---|---|---|
ParserMaterial | |||
![]() |
Duplicates an instance of a Material. | Material | |
![]() | getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D. | Material |
colors | property |
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.
renderChannel | property |
public var renderChannel:String = diffuse
Channel, that will be rendered. Possible options: ambient, emission, diffuse, specular, shininess, reflective, transparent, bump.
textures | property |
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
transparency | property |
public var transparency:Number = 0
Transparency of material
ParserMaterial | () | Constructor |
public function ParserMaterial()