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
  
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)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 Parameters
Method detail
renderLightMap()method
protected override function renderLightMap():void

Renders the multiple passes to the light map

Wiki link
Click to go to the wiki page for 'away3d.materials.DiffuseMultiPassMaterial'

Code examples

Comments