Package | away3d.materials |
Class | public class CenterLightingMaterial |
Inheritance | CenterLightingMaterial ![]() |
Implements | ITriangleMaterial |
Subclasses | ShadingColorMaterial, WhiteShadingBitmapMaterial |
ShadingColorMaterial
or WhiteShadingBitmapMaterial
.
Property | Defined by | ||
---|---|---|---|
ambient_brightness : Number = 1
Coefficient for ambient light level
| CenterLightingMaterial | ||
diffuse_brightness : Number = 1
Coefficient for diffuse light level
| CenterLightingMaterial | ||
id : int [read-only]
Unique identifier
| CenterLightingMaterial | ||
shininess : Number = 20
Coefficient for shininess level
| CenterLightingMaterial | ||
specular_brightness : Number = 1
Coefficient for specular light level
| CenterLightingMaterial | ||
visible : Boolean [read-only]
Indicates whether the material is visible
| CenterLightingMaterial |
Property | Defined by | ||
---|---|---|---|
ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
| CenterLightingMaterial |
Method | Defined by | ||
---|---|---|---|
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| CenterLightingMaterial | ||
CenterLightingMaterial | |||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| CenterLightingMaterial | ||
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | CenterLightingMaterial | ||
Called once per render loop when material is visible.
| CenterLightingMaterial |
ambient_brightness | property |
public var ambient_brightness:Number = 1
Coefficient for ambient light level
diffuse_brightness | property |
public var diffuse_brightness:Number = 1
Coefficient for diffuse light level
id | property |
id:int
[read-only]Unique identifier
Implementation public function get id():int
ini | property |
protected var ini:Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
shininess | property |
public var shininess:Number = 20
Coefficient for shininess level
specular_brightness | property |
public var specular_brightness:Number = 1
Coefficient for specular light level
visible | property |
visible:Boolean
[read-only]Indicates whether the material is visible
Implementation public function get visible():Boolean
addOnMaterialUpdate | () | method |
public function addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Parameterslistener:Function — The listener function
|
clearFaces | () | method |
public function clearFaces(source:Object3D = null, view:View3D = null):void
Parameters
source:Object3D (default = null )
|
|
view:View3D (default = null )
|
removeOnMaterialUpdate | () | method |
public function removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Parameterslistener:Function — The listener function
|
renderTriangle | () | method |
public function renderTriangle(tri:DrawTriangle):void
Sends data from the material coupled with data from the DrawTriangle
primitive to the render session.
tri:DrawTriangle |
updateMaterial | () | method |
public function updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
Parameterssource:Object3D |
|
view:View3D |