Package | away3d.materials |
Class | public class DiffuseMultiPassMaterial |
Inheritance | DiffuseMultiPassMaterial away3d.materials.MultiPassShaderMaterial |
Method | Defined by | ||
---|---|---|---|
DiffuseMultiPassMaterial
(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, init:Object = null)
Create a DiffuseMultiPassMaterial
| DiffuseMultiPassMaterial |
Method | Defined by | ||
---|---|---|---|
renderLightMap():void
Renders the multiple passes to the light map
| DiffuseMultiPassMaterial |
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
|
renderLightMap | () | method |
protected override function renderLightMap():void
Renders the multiple passes to the light map