Packageaway3d.materials
Classpublic class SphericEnvMapPBMaterial
InheritanceSphericEnvMapPBMaterial Inheritance away3d.materials.SinglePassShaderMaterial

BitmapData material which creates reflections based on a spherical map.



Public Properties
 PropertyDefined By
  envMapAlpha : Number
The opacity of the environment map, ie: how reflective the surface is.
SphericEnvMapPBMaterial
  reflectivityMap : BitmapData
A texture map that indicates the reflection amount for each texel
SphericEnvMapPBMaterial
Protected Properties
 PropertyDefined By
  _envMap : BitmapData
SphericEnvMapPBMaterial
Public Methods
 MethodDefined By
  
SphericEnvMapPBMaterial(bitmap:BitmapData, normalMap:BitmapData, envMap:BitmapData, targetModel:Mesh, init:Object = null)
Creates a new SphericEnvMapPBMaterial object.
SphericEnvMapPBMaterial
Protected Methods
 MethodDefined By
  
updatePixelShader(source:Object3D, view:View3D):void
[override]
SphericEnvMapPBMaterial
Property Detail
_envMapproperty
protected var _envMap:BitmapData

envMapAlphaproperty 
envMapAlpha:Number

The opacity of the environment map, ie: how reflective the surface is. 1 is a perfect mirror.


Implementation
    public function get envMapAlpha():Number
    public function set envMapAlpha(value:Number):void
reflectivityMapproperty 
reflectivityMap:BitmapData

A texture map that indicates the reflection amount for each texel


Implementation
    public function get reflectivityMap():BitmapData
    public function set reflectivityMap(value:BitmapData):void
Constructor Detail
SphericEnvMapPBMaterial()Constructor
public function SphericEnvMapPBMaterial(bitmap:BitmapData, normalMap:BitmapData, envMap:BitmapData, targetModel:Mesh, init:Object = null)

Creates a new SphericEnvMapPBMaterial object.

Parameters
bitmap:BitmapData — The texture to be used for the diffuse shading
 
normalMap:BitmapData — An object-space normal map
 
envMap:BitmapData — The environment map to be reflected
 
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