Package | away3d.materials |
Class | public class DefaultMaterialBase |
Inheritance | DefaultMaterialBase MaterialBase |
Subclasses | BitmapMaterial, ColorMaterial |
Property | Defined by | ||
---|---|---|---|
ambient : Number
The strength of the ambient reflection.
| DefaultMaterialBase | ||
ambientColor : uint
The colour of the ambient reflection.
| DefaultMaterialBase | ||
ambientMethod : BasicAmbientMethod
The method to perform diffuse shading.
| DefaultMaterialBase | ||
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 | ||
colorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with.
| DefaultMaterialBase | ||
diffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading.
| DefaultMaterialBase | ||
extra : Object
An object to contain any extra data
| MaterialBase | ||
gloss : Number
The sharpness of the specular highlight.
| DefaultMaterialBase | ||
lights : Array | MaterialBase | ||
materialNamespace : String
The namespace of the material, used by the MaterialLibrary.
| MaterialBase | ||
mipmap : Boolean [write-only]
| DefaultMaterialBase | ||
name : String
The name of the material.
| MaterialBase | ||
normalMap : BitmapData
The tangent space normal map to influence the direction of the surface for each texel.
| DefaultMaterialBase | ||
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.
| DefaultMaterialBase | ||
shadowMethod : ShadingMethodBase
The method to perform diffuse shading.
| DefaultMaterialBase | ||
smooth : Boolean
Indicates whether or not any used textures should use smoothing.
| MaterialBase | ||
specular : Number
The overall strength of the specular reflection.
| DefaultMaterialBase | ||
specularColor : uint
The colour of the specular reflection.
| DefaultMaterialBase | ||
specularMap : BitmapData
A specular map that defines the strength of specular reflections for each texel.
| DefaultMaterialBase | ||
specularMethod : BasicSpecularMethod
The method to perform specular shading.
| DefaultMaterialBase | ||
uniqueId : uint
The unique id assigned to the material by the MaterialLibrary.
| MaterialBase |
Property | Defined by | ||
---|---|---|---|
_mipmap : Boolean | MaterialBase | ||
_numPasses : uint | MaterialBase | ||
_screenPass : DefaultScreenPass | DefaultMaterialBase |
Method | Defined by | ||
---|---|---|---|
Creates a new DefaultMaterialBase object.
| DefaultMaterialBase | ||
DefaultMaterialBase | |||
DefaultMaterialBase | |||
dispose(deep:Boolean):void
| DefaultMaterialBase | ||
isBitmapDataValid(bitmapData:BitmapData, id:uint = 0):Boolean
| DefaultMaterialBase | ||
DefaultMaterialBase | |||
setNameAndSpace(name:String, materialNameSpace:String):void
Sets the materials name and namespace.
| MaterialBase |
ambient | property |
ambient:Number
[read-write]The strength of the ambient reflection.
Implementation public function get ambient():Number
public function set ambient(value:Number):void
ambientColor | property |
ambientColor:uint
[read-write]The colour of the ambient reflection.
Implementation public function get ambientColor():uint
public function set ambientColor(value:uint):void
ambientMethod | property |
ambientMethod:BasicAmbientMethod
[read-write]The method to perform diffuse shading.
Implementation public function get ambientMethod():BasicAmbientMethod
public function set ambientMethod(value:BasicAmbientMethod):void
colorTransform | property |
colorTransform:ColorTransform
[read-write]The ColorTransform object to transform the colour of the material with.
Implementation public function get colorTransform():ColorTransform
public function set colorTransform(value:ColorTransform):void
diffuseMethod | property |
diffuseMethod:BasicDiffuseMethod
[read-write]The method to perform diffuse shading.
Implementation public function get diffuseMethod():BasicDiffuseMethod
public function set diffuseMethod(value:BasicDiffuseMethod):void
gloss | property |
gloss:Number
[read-write]The sharpness of the specular highlight.
Implementation public function get gloss():Number
public function set gloss(value:Number):void
mipmap | property |
mipmap:Boolean
[write-only]Implementation
public function set mipmap(value:Boolean):void
normalMap | property |
normalMap:BitmapData
[read-write]The tangent space normal map to influence the direction of the surface for each texel.
Implementation public function get normalMap():BitmapData
public function set normalMap(value:BitmapData):void
requiresBlending | property |
requiresBlending:Boolean
[read-only]Indicates whether or not the material requires alpha blending during rendering.
Implementation public function get requiresBlending():Boolean
_screenPass | property |
protected var _screenPass:DefaultScreenPass
shadowMethod | property |
shadowMethod:ShadingMethodBase
[read-write]The method to perform diffuse shading.
Implementation public function get shadowMethod():ShadingMethodBase
public function set shadowMethod(value:ShadingMethodBase):void
specular | property |
specular:Number
[read-write]The overall strength of the specular reflection.
Implementation public function get specular():Number
public function set specular(value:Number):void
specularColor | property |
specularColor:uint
[read-write]The colour of the specular reflection.
Implementation public function get specularColor():uint
public function set specularColor(value:uint):void
specularMap | property |
specularMap:BitmapData
[read-write]A specular map that defines the strength of specular reflections for each texel.
Implementation public function get specularMap():BitmapData
public function set specularMap(value:BitmapData):void
specularMethod | property |
specularMethod:BasicSpecularMethod
[read-write]The method to perform specular shading.
Implementation public function get specularMethod():BasicSpecularMethod
public function set specularMethod(value:BasicSpecularMethod):void
DefaultMaterialBase | () | constructor |
public function DefaultMaterialBase()
Init Parameters
addMethod | () | method |
addMethodAt | () | method |
public function addMethodAt(method:ShadingMethodBase, index:int):void
Parameters
method:ShadingMethodBase |
|
index:int |
dispose | () | method |
public override function dispose(deep:Boolean):void
Parameters
deep:Boolean |
isBitmapDataValid | () | method |
public function isBitmapDataValid(bitmapData:BitmapData, id:uint = 0):Boolean
Parameters
bitmapData:BitmapData |
|
id:uint (default = 0 )
|
Boolean |
removeMethod | () | method |
updateMaterial | () | method |
arcane override function updateMaterial(context:Context3D):void
Updates the material
Parameterscontext:Context3D |