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
DiffusePBMaterial
Constructor detail
DiffusePBMaterial()constructor
public function DiffusePBMaterial(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
updatePixelShader()method
protected override function updatePixelShader(source:Object3D, view:View3D):void Parameters
source:Object3D
 
view:View3D
Wiki link
Click to go to the wiki page for 'away3d.materials.DiffusePBMaterial'

Code examples

Comments