Packageaway3d.materials
Classpublic class SpecularMultiPassMaterial
InheritanceSpecularMultiPassMaterial Inheritance away3d.materials.MultiPassShaderMaterial

A specular-only texel shader material supporting multiple lights.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
SpecularMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, specularMap:BitmapData = null, init:Object = null)
Creates a SpecularMultiPassMaterial.
SpecularMultiPassMaterial
Protected Methods
 MethodDefined By
  
[override] Renders the multiple passes to the light map
SpecularMultiPassMaterial
  
updatePixelShader(source:Object3D, view:View3D):void
[override] Updates the pixel bender shader
SpecularMultiPassMaterial
Property Detail
glossproperty
gloss:Number

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
specularproperty 
specular:Number

The strength of the specular highlight


Implementation
    public function get specular():Number
    public function set specular(value:Number):void
specularMapproperty 
specularMap:BitmapData

An optional specular map BitmapData, which modulates the specular reflections


Implementation
    public function get specularMap():BitmapData
    public function set specularMap(value:BitmapData):void
Constructor Detail
SpecularMultiPassMaterial()Constructor
public function SpecularMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, specularMap:BitmapData = null, init:Object = null)

Creates a SpecularMultiPassMaterial.

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
####INIT####
Method Detail
renderLightMap()method
override protected function renderLightMap():void

Renders the multiple passes to the light map

updatePixelShader()method 
override protected function updatePixelShader(source:Object3D, view:View3D):void

Updates the pixel bender shader

Parameters

source:Object3D
 
view:View3D