Package | away3d.materials |
Class | public class PhongMovieMaterial |
Inheritance | PhongMovieMaterial ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
Defines an alpha value for the layer container.
| CompositeMaterial | |
![]() | blendMode : String
Defines a blendMode value for the layer container.
| CompositeMaterial | |
![]() | color : uint
Defines a colored tint for the layer container.
| CompositeMaterial | |
![]() | materials : Array
An array of bitmapmaterial objects to be overlayed sequentially.
| CompositeMaterial | |
shininess : Number
The exponential dropoff value used for specular highlights.
| PhongMovieMaterial | ||
specular : Number
Coefficient for specular light level.
| PhongMovieMaterial | ||
![]() | visible : Boolean
Indicates whether the material is visible
| CompositeMaterial |
Method | Defined by | ||
---|---|---|---|
PhongMovieMaterial
(movie:Sprite, init:Object = null)
Creates a new
PhongMovieMaterial object. | PhongMovieMaterial | ||
![]() |
Renders a material layer for the specified triangle.
| CompositeMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | CompositeMaterial | |
![]() |
Called once per render loop when material is visible.
| CompositeMaterial |
shininess | property |
shininess:Number
[read-write]The exponential dropoff value used for specular highlights.
Implementation public function get shininess():Number
public function set shininess(value:Number):void
specular | property |
specular:Number
[read-write]Coefficient for specular light level.
Implementation public function get specular():Number
public function set specular(value:Number):void
PhongMovieMaterial | () | constructor |
public function PhongMovieMaterial(movie:Sprite, init:Object = null)
Parameters
movie:Sprite — The movieclip to be used as the material's texture.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|