Package | away3d.materials |
Class | public class PhongMultiPassMaterial |
Inheritance | PhongMultiPassMaterial away3d.materials.MultiPassShaderMaterial |
Property | Defined by | ||
---|---|---|---|
gloss : Number
The gloss component of the specular highlight.
| PhongMultiPassMaterial | ||
specular : Number
The strength of the specular highlight
| PhongMultiPassMaterial | ||
specularMap : BitmapData
An optional specular map BitmapData, which modulates the specular reflections
| PhongMultiPassMaterial |
Method | Defined by | ||
---|---|---|---|
PhongMultiPassMaterial
(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, specularMap:BitmapData = null, init:Object = null)
Creates a PhongMultiPassMaterial.
| PhongMultiPassMaterial |
Method | Defined by | ||
---|---|---|---|
renderLightMap():void
Renders the multiple passes to the light map
| PhongMultiPassMaterial | ||
Updates the pixel bender shader
| PhongMultiPassMaterial |
gloss | property |
gloss:Number
[read-write]The gloss component of the specular highlight. Higher numbers will result in a smaller and sharper highlight.
Implementation public function get gloss():Number
public function set gloss(value:Number):void
specular | property |
specular:Number
[read-write]The strength of the specular highlight
Implementation public function get specular():Number
public function set specular(value:Number):void
specularMap | property |
specularMap:BitmapData
[read-write]An optional specular map BitmapData, which modulates the specular reflections
Implementation public function get specularMap():BitmapData
public function set specularMap(value:BitmapData):void
PhongMultiPassMaterial | () | constructor |
public function PhongMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, specularMap:BitmapData = null, init:Object = null)
Parameters
bitmap:BitmapData — The texture to be used for the diffuse shading
|
|
normalMap:BitmapData — An object-space normal map
|
|
targetModel:Mesh — The target mesh for which this shader is applied
|
|
specularMap:BitmapData (default = null ) — An optional specular map BitmapData, which modulates the specular reflections
|
|
init:Object (default = null ) — An initialisation object
|
gloss:Number (default = 10) | |
specular:Number (default = 1) |
renderLightMap | () | method |
protected override function renderLightMap():void
Renders the multiple passes to the light map
updatePixelShader | () | method |
protected override function updatePixelShader(source:Object3D, view:View3D):void
Updates the pixel bender shader
Parameterssource:Object3D |
|
view:View3D |