| Package | away3d.materials.shaders |
| Class | public class SpecularPhongShader |
| Inheritance | SpecularPhongShader AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | alpha : Number
Determines the alpha value of the material
| WireColorMaterial | |
![]() | blendMode : String
Defines a blendMode value for the shader bitmap.
| AbstractShader | |
![]() | color : uint
24 bit color value representing the material color
| WireColorMaterial | |
![]() | debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| ColorMaterial | |
![]() | id : int
Unique identifier
| Material | |
| shininess : Number
The exponential dropoff value used for specular highlights.
| SpecularPhongShader | ||
![]() | smooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
| AbstractShader | |
| specular : uint
Color value for specular light.
| SpecularPhongShader | ||
![]() | thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | |
![]() | visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | |
![]() | wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | |
![]() | wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial | |
| Method | Defined by | ||
|---|---|---|---|
|
SpecularPhongShader
(init:Object = null)
Creates a new
SpecularPhongShader object. | SpecularPhongShader | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | |
![]() |
Duplicates the material properties to another material object.
| ColorMaterial | |
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | |
| Method | Defined by | ||
|---|---|---|---|
|
calcMapping(priIndex:uint, map:Matrix):Matrix
| SpecularPhongShader | ||
|
calcUVT(priIndex:uint, uvt:Vector):Vector
| SpecularPhongShader | ||
![]() |
getDefaultThickness():Number
| WireframeMaterial | |
![]() |
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
| AbstractShader | |
![]() |
getUVData(priIndex:uint):Vector
| AbstractShader | |
|
renderShader(priIndex:uint):void
Renders the shader to the specified face.
| SpecularPhongShader | ||
|
| SpecularPhongShader | ||
| 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:uint [read-write]Color value for specular light.
Implementation public function get specular():uint
public function set specular(value:uint):void
| SpecularPhongShader | () | constructor |
public function SpecularPhongShader(init:Object = null)Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
shininess:Number (default = 20) | |
specular:Color (default = 0xFFFFFF) |
| calcMapping | () | method |
protected override function calcMapping(priIndex:uint, map:Matrix):Matrix
Parameters
priIndex:uint |
|
map:Matrix |
Matrix |
| calcUVT | () | method |
protected override function calcUVT(priIndex:uint, uvt:Vector):Vector
Parameters
priIndex:uint |
|
uvt:Vector |
Vector |
| renderShader | () | method |
protected override function renderShader(priIndex:uint):void
Renders the shader to the specified face.
ParameterspriIndex:uint — The index of the primitive being rendered.
|
| updateFaces | () | method |
protected function updateFaces(source:Object3D, view:View3D):void
Parameters
source:Object3D |
|
view:View3D |