| Package | away3d.materials.shaders |
| Class | public class DiffusePhongShader |
| Inheritance | DiffusePhongShader AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
See also
| Method | Defined by | ||
|---|---|---|---|
|
DiffusePhongShader
(init:Object = null)
Creates a new
DiffusePhongShader object. | DiffusePhongShader | ||
![]() |
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 | ||
|---|---|---|---|
| DiffusePhongShader | |||
| DiffusePhongShader | |||
![]() |
getDefaultThickness():Number
| WireframeMaterial | |
![]() |
Calculates the mapping matrix required to draw the triangle texture to screen.
| AbstractShader | |
![]() | AbstractShader | ||
|
Renders the shader to the specified face.
| DiffusePhongShader | ||
|
| DiffusePhongShader | ||
| DiffusePhongShader | () | constructor |
public function DiffusePhongShader(init:Object = null)Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
| calcMapping | () | method |
protected override function calcMapping(tri:DrawTriangle, map:Matrix):Matrix
Parameters
tri:DrawTriangle |
|
map:Matrix |
Matrix |
| calcUVT | () | method |
protected override function calcUVT(tri:DrawTriangle, uvt:Vector):Vector
Parameters
tri:DrawTriangle |
|
uvt:Vector |
Vector |
| renderShader | () | method |
protected override function renderShader(tri:DrawTriangle):void
Renders the shader to the specified face.
Parameterstri:DrawTriangle — The face object being rendered.
|
| updateFaces | () | method |
protected function updateFaces(source:Object3D, view:View3D):void
Parameters
source:Object3D |
|
view:View3D |