| Package | away3d.materials |
| Class | public class SpecularMultiPassMaterial |
| Inheritance | SpecularMultiPassMaterial away3d.materials.MultiPassShaderMaterial |
| Property | Defined By | ||
|---|---|---|---|
| gloss : Number
The gloss component of the specular highlight. | SpecularMultiPassMaterial | ||
| specular : Number
The strength of the specular highlight
| SpecularMultiPassMaterial | ||
| specularMap : BitmapData
An optional specular map BitmapData, which modulates the specular reflections
| SpecularMultiPassMaterial | ||
| Method | Defined By | ||
|---|---|---|---|
SpecularMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, specularMap:BitmapData = null, init:Object = null)
Creates a SpecularMultiPassMaterial. | SpecularMultiPassMaterial | ||
| Method | Defined By | ||
|---|---|---|---|
renderLightMap():void [override]
Renders the multiple passes to the light map
| SpecularMultiPassMaterial | ||
[override]
Updates the pixel bender shader
| SpecularMultiPassMaterial | ||
| gloss | property |
gloss:NumberThe gloss component of the specular highlight. Higher numbers will result in a smaller and sharper highlight.
public function get gloss():Number public function set gloss(value:Number):void| specular | property |
specular:NumberThe strength of the specular highlight
public function get specular():Number public function set specular(value:Number):void| specularMap | property |
specularMap:BitmapDataAn optional specular map BitmapData, which modulates the specular reflections
public function get specularMap():BitmapData public function set specularMap(value:BitmapData):void| SpecularMultiPassMaterial | () | Constructor |
public function SpecularMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, specularMap:BitmapData = null, init:Object = null)Creates a SpecularMultiPassMaterial.
Parametersbitmap: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
|
| renderLightMap | () | method |
override protected function renderLightMap():voidRenders the multiple passes to the light map
| updatePixelShader | () | method |
override protected function updatePixelShader(source:Object3D, view:View3D):voidUpdates the pixel bender shader
Parameters
source:Object3D | |
view:View3D |