Packageaway3d.materials
Classpublic class DiffuseMultiPassMaterial
InheritanceDiffuseMultiPassMaterial Inheritance away3d.materials.MultiPassShaderMaterial

A diffuse texel shader material with support for multiple and directional lights



Public Methods
 MethodDefined By
  
DiffuseMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, init:Object = null)
Create a DiffuseMultiPassMaterial
DiffuseMultiPassMaterial
Protected Methods
 MethodDefined By
  
[override] Renders the multiple passes to the light map
DiffuseMultiPassMaterial
Constructor Detail
DiffuseMultiPassMaterial()Constructor
public function DiffuseMultiPassMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, init:Object = null)

Create a DiffuseMultiPassMaterial

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
 
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