Bitmap material with per-texel diffuse (Lambert) shading.
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####
override protected function updatePixelShader(source:Object3D, view:View3D):void
Parameters
Tue Jun 7 2011, 11:27 PM +01:00