Packageaway3d.materials
Classpublic class DiffusePBMaterial
InheritanceDiffusePBMaterial Inheritance away3d.materials.SinglePassShaderMaterial

Bitmap material with per-texel diffuse (Lambert) shading.



Public Methods
 MethodDefined By
  
DiffusePBMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, init:Object = null)
Creates a new DiffusePBMaterial object.
DiffusePBMaterial
Protected Methods
 MethodDefined By
  
updatePixelShader(source:Object3D, view:View3D):void
[override]
DiffusePBMaterial
Constructor Detail
DiffusePBMaterial()Constructor
public function DiffusePBMaterial(bitmap:BitmapData, normalMap:BitmapData, targetModel:Mesh, init:Object = null)

Creates a new DiffusePBMaterial object.

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
updatePixelShader()method
override protected function updatePixelShader(source:Object3D, view:View3D):void

Parameters

source:Object3D
 
view:View3D