Packageflare.materials
Classpublic class TextureMaterial
InheritanceTextureMaterial Inheritance FLSLMaterial Inheritance Material3D Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritedcullFace : String
The culling mode.
Material3D
 InheriteddepthCompare : String = lessEqual
The test comparasion to be used when depthWrite is 'true'.
Material3D
 InheriteddepthWrite : Boolean = true
Gets or sets whatever the material writes into the z-buffer.
Material3D
 InheriteddestFactor : String
The factor with which to multiply the destination color.
Material3D
 Inheritedname : String
The name of the material.
Material3D
 Inheritedprograms : Vector.<FLSLProgram>
FLSLMaterial
 Inheritedscene : Scene3D
[read-only] Gets a reference to the scene that the material is associated.
Material3D
 InheritedsourceFactor : String
The factor with which to multiply the source color.
Material3D
 Inheritedtransparent : Boolean
Sets or gets if the material should use alpha blending.
Material3D
 InheritedtwoSided : Boolean
Sets or gets if the material should be drawn useing both sides of the surfaces.
Material3D
Public Methods
 MethodDefined By
  
TextureMaterial(name:String, texture:Texture3D = null)
TextureMaterial
 Inherited
Clones the material.
Material3D
 Inherited
dispose():void
Eliminates all the resources associated to the material.
Material3D
 Inherited
download():void
Downloads all the data uploaded to the graphics card.
Material3D
 Inherited
draw(pivot:Pivot3D, surf:Surface3D, firstIndex:int = 0, count:int = -1):void
Draw a mesh surface using the current material.
Material3D
 Inherited
getParamByName(name:String, index:int = 0):FLSLParam
FLSLMaterial
 Inherited
getTextueByName(name:String, index:int = 0):Texture3D
FLSLMaterial
 Inherited
setTextueByName(name:String, value:Texture3D, index:int = 0):void
FLSLMaterial
 Inherited
upload(scene:Scene3D):void
Uploads the necesary data to the graphics card.
Material3D
Constructor Detail
TextureMaterial()Constructor
public function TextureMaterial(name:String, texture:Texture3D = null)



Parameters
name:String
 
texture:Texture3D (default = null)