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 | ||
[override]
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 [override] | DiffusePhongShader | ||
calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number> [override] | DiffusePhongShader | ||
getDefaultThickness():Number | WireframeMaterial | ||
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen. | AbstractShader | ||
getUVData(priIndex:uint):Vector.<Number> | AbstractShader | ||
renderShader(priIndex:uint):void [override]
Renders the shader to the specified face. | DiffusePhongShader | ||
DiffusePhongShader |
DiffusePhongShader | () | Constructor |
public function DiffusePhongShader(init:Object = null)
Creates a new DiffusePhongShader
object.
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
calcMapping | () | method |
override protected function calcMapping(priIndex:uint, map:Matrix):Matrix
Parameters
priIndex:uint | |
map:Matrix |
Matrix |
calcUVT | () | method |
override protected function calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number>
Parameters
priIndex:uint | |
uvt:Vector.<Number> |
Vector.<Number> |
renderShader | () | method |
override protected function renderShader(priIndex:uint):void
Renders the shader to the specified face.
Parameters
priIndex:uint — The index of the primitive being rendered.
|
updateFaces | () | method |
protected function updateFaces(source:Object3D, view:View3D):void
Parameters
source:Object3D | |
view:View3D |