Packageaway3d.materials
Classpublic class CubicEnvMapPBMaterial
InheritanceCubicEnvMapPBMaterial Inheritance away3d.materials.SinglePassShaderMaterial

BitmapData material which creates reflections based on a cube map.

Public Properties
 PropertyDefined by
  envMapAlpha : Number
The opacity of the environment map, ie: how reflective the surface is.
CubicEnvMapPBMaterial
  reflectivityMap : BitmapData
A texture map that indicates the reflection amount for each texel
CubicEnvMapPBMaterial
Public Methods
 MethodDefined by
  
CubicEnvMapPBMaterial
(bitmap:BitmapData, normalMap:BitmapData, faces:Array, targetModel:Mesh, init:Object = null)
Creates a new CubicEnvMapPBMaterial object.
CubicEnvMapPBMaterial
Protected Methods
 MethodDefined by
  
updatePixelShader(source:Object3D, view:View3D):void
CubicEnvMapPBMaterial
Property detail
envMapAlphaproperty
envMapAlpha:Number  [read-write]

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  [read-write]

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
CubicEnvMapPBMaterial()constructor
public function CubicEnvMapPBMaterial(bitmap:BitmapData, normalMap:BitmapData, faces:Array, targetModel:Mesh, init:Object = null)Parameters
bitmap:BitmapData — The texture to be used for the diffuse shading
 
normalMap:BitmapData — An object-space normal map
 
faces:Array — An array of equally sized square textures for each face of the cube map. Every value in CubeFaces must be defined as a key to this array and have a BitmapData assigned to it.
 
targetModel:Mesh — The target mesh for which this shader is applied
 
init:Object (default = null) — An initialisation object
Init Parameters
 envMapAlpha:Number (default = 1)
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.CubicEnvMapPBMaterial'

Code examples

Comments