Packageflare.materials
Classpublic class NullMaterial
InheritanceNullMaterial Inheritance FLSLMaterial Inheritance Material3D Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritedblendMode : int
[override]
FLSLMaterial
 InheritedbyteCode : ByteArray
Sets or gets the flsl byteCode associated with the material.
FLSLMaterial
 InheritedcullFace : String
The culling mode.
Material3D
 InheritedcurrentTextuesPath : String
[static] FLSL shaders can request textures to be loaded, they ussualy are placed in the same directory as the flsl compiled file.
FLSLMaterial
 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
 Inheritedflags : uint
A 32bit flag to store different material properties.
Material3D
  material : NullMaterial
[static] [read-only]
NullMaterial
 InheritedmaterialAttributes : uint = 0
A 32bit flag values which defines the vertex attributes needed to render this particula material.
Material3D
 Inheritedname : String
The name of the material.
Material3D
 Inheritedparams : Object
Contains a collection of flsl public declarations.
FLSLMaterial
  programs : Vector.<FLSLProgram>
[static]
NullMaterial
 Inheritedscene : Scene3D
[read-only] Gets a reference to the scene that the material is associated.
Material3D
 Inheritedsemantics : Array
[static] Semantics are used to bind static data into specific flsl parameters.
FLSLMaterial
 Inheritedsource : String
Shader source code if available.
FLSLMaterial
 InheritedsourceFactor : String
The factor with which to multiply the source color.
Material3D
 InheritedtechniqueName : String
The name of the thecnique to use.
FLSLMaterial
 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
  
NullMaterial(name:String = nullMaterial)
NullMaterial
 Inherited
build():void
Compiles the material if it isn't already compiled.
FLSLMaterial
 Inherited
[override] Creates a clone of the FLSLMaterial.
FLSLMaterial
 Inherited
dispose():void
[override]
FLSLMaterial
 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
drawQuad(x:Number = 0, y:Number = 0, width:Number = -1, height:Number = -1):void
FLSLMaterial
 Inherited
getTechnique(name:String = null):Vector.<FLSLProgram>
FLSLMaterial
 Inherited
Retirms all technique names available in the current shader.
FLSLMaterial
 Inherited
getTextures(out:Vector.<Texture3D>):Vector.<Texture3D>
[override]
FLSLMaterial
 Inherited
rebuild():void
Forces to recompile the material.
FLSLMaterial
 Inherited
replaceTexture(source:Texture3D, replaceFor:Texture3D):void
[override]
FLSLMaterial
 Inherited
setTechnique(name:String = null):void
FLSLMaterial
 Inherited
upload(scene:Scene3D):void
Associates and link the material with the scene to be uploaded.
Material3D
 Inherited
validate(surf:Surface3D):Boolean
Validates that the surface is compatible with the material.
Material3D
Protected Methods
 MethodDefined By
 Inherited
context3DEvent(e:Event = null):void
Uploads the necesary data to the graphics card.
Material3D
Public Constants
 ConstantDefined By
 InheritedBLEND_ADDITIVE : int = 1
[static]
Material3D
 InheritedBLEND_ALPHA_BLENDED : int = 2
[static]
Material3D
 InheritedBLEND_MULTIPLY : int = 3
[static]
Material3D
 InheritedBLEND_NONE : int = 0
[static]
Material3D
 InheritedBLEND_SCREEN : int = 4
[static]
Material3D
 InheritedFLAG_MASK : uint
[static]
Material3D
 InheritedFLAG_SKIN1 : uint
[static]
Material3D
 InheritedFLAG_SKIN2 : uint
[static]
Material3D
 InheritedFLAG_SKIN3 : uint
[static]
Material3D
 InheritedFLAG_SKIN4 : uint
[static]
Material3D
Property Detail
materialproperty
material:NullMaterial  [read-only]


Implementation
    public static function get material():NullMaterial
programsproperty 
programs:Vector.<FLSLProgram>


Implementation
    public static function get programs():Vector.<FLSLProgram>
    public static function set programs(value:Vector.<FLSLProgram>):void
Constructor Detail
NullMaterial()Constructor
public function NullMaterial(name:String = nullMaterial)



Parameters
name:String (default = nullMaterial)