Package | away3d.materials |
Class | public class MaterialBase |
Implements | IResource |
Subclasses | DefaultMaterialBase, SkyBoxMaterial, WireframeMaterial |
Property | Defined by | ||
---|---|---|---|
blendMode : String
The blend mode to use when drawing this renderable.
| MaterialBase | ||
bothSides : Boolean
Defines whether or not the material should perform backface culling.
| MaterialBase | ||
extra : Object
An object to contain any extra data
| MaterialBase | ||
lights : Array | MaterialBase | ||
materialNamespace : String
The namespace of the material, used by the MaterialLibrary.
| MaterialBase | ||
mipmap : Boolean
Indicates whether or not any used textures should use mipmapping.
| MaterialBase | ||
name : String
The name of the material.
| MaterialBase | ||
repeat : Boolean
Indicates whether or not any used textures should be tiled.
| MaterialBase | ||
requiresBlending : Boolean [read-only]
Indicates whether or not the material requires alpha blending during rendering.
| MaterialBase | ||
smooth : Boolean
Indicates whether or not any used textures should use smoothing.
| MaterialBase | ||
uniqueId : uint [read-only]
The unique id assigned to the material by the MaterialLibrary.
| MaterialBase |
Property | Defined by | ||
---|---|---|---|
_mipmap : Boolean | MaterialBase | ||
_numPasses : uint | MaterialBase |
Method | Defined by | ||
---|---|---|---|
MaterialBase
()
Creates a new MaterialBase object.
| MaterialBase | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| MaterialBase | ||
setNameAndSpace(name:String, materialNameSpace:String):void
Sets the materials name and namespace.
| MaterialBase |
Method | Defined by | ||
---|---|---|---|
Adds a pass to the material
| MaterialBase | ||
clearPasses():void
Clears all passes in the material.
| MaterialBase |
blendMode | property |
blendMode:String
[read-write]The blend mode to use when drawing this renderable. The following blend modes are supported:
public function get blendMode():String
public function set blendMode(value:String):void
bothSides | property |
bothSides:Boolean
[read-write]Defines whether or not the material should perform backface culling.
Implementation public function get bothSides():Boolean
public function set bothSides(value:Boolean):void
extra | property |
public var extra:Object
An object to contain any extra data
lights | property |
lights:Array
[read-write]Implementation
public function get lights():Array
public function set lights(value:Array):void
materialNamespace | property |
materialNamespace:String
[read-write]The namespace of the material, used by the MaterialLibrary.
Implementation public function get materialNamespace():String
public function set materialNamespace(value:String):void
_mipmap | property |
protected var _mipmap:Boolean
mipmap | property |
mipmap:Boolean
[read-write]Indicates whether or not any used textures should use mipmapping.
Implementation public function get mipmap():Boolean
public function set mipmap(value:Boolean):void
_name | property |
arcane var _name:String = "material"
name | property |
name:String
[read-write]The name of the material.
Implementation public function get name():String
public function set name(value:String):void
_numPasses | property |
protected var _numPasses:uint
repeat | property |
repeat:Boolean
[read-write]Indicates whether or not any used textures should be tiled.
Implementation public function get repeat():Boolean
public function set repeat(value:Boolean):void
requiresBlending | property |
requiresBlending:Boolean
[read-only]Indicates whether or not the material requires alpha blending during rendering.
Implementation public function get requiresBlending():Boolean
smooth | property |
smooth:Boolean
[read-write]Indicates whether or not any used textures should use smoothing.
Implementation public function get smooth():Boolean
public function set smooth(value:Boolean):void
uniqueId | property |
uniqueId:uint
[read-only]The unique id assigned to the material by the MaterialLibrary.
Implementation public function get uniqueId():uint
MaterialBase | () | constructor |
public function MaterialBase()
Init Parameters
addPass | () | method |
protected function addPass(pass:MaterialPassBase):void
Adds a pass to the material
Parameterspass:MaterialPassBase |
clearPasses | () | method |
protected function clearPasses():void
Clears all passes in the material.
dispose | () | method |
public function dispose(deep:Boolean):void
Cleans up any resources used by the current object.
Parametersdeep:Boolean — Indicates whether other resources should be cleaned up, that could potentially be shared across different instances.
|
setNameAndSpace | () | method |
public function setNameAndSpace(name:String, materialNameSpace:String):void
Sets the materials name and namespace.
Parametersname:String — The name of the material.
|
|
materialNameSpace:String — The name space of the material.
|