Package | away3d.materials |
Class | public class SphericEnvMapPBMaterial |
Inheritance | SphericEnvMapPBMaterial away3d.materials.SinglePassShaderMaterial |
Property | Defined 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 |
Property | Defined By | ||
---|---|---|---|
_envMap : BitmapData | SphericEnvMapPBMaterial |
Method | Defined By | ||
---|---|---|---|
SphericEnvMapPBMaterial(bitmap:BitmapData, normalMap:BitmapData, envMap:BitmapData, targetModel:Mesh, init:Object = null)
Creates a new SphericEnvMapPBMaterial object. | SphericEnvMapPBMaterial |
Method | Defined By | ||
---|---|---|---|
[override] | SphericEnvMapPBMaterial |
_envMap | property |
protected var _envMap:BitmapData
envMapAlpha | property |
envMapAlpha:Number
The opacity of the environment map, ie: how reflective the surface is. 1 is a perfect mirror.
public function get envMapAlpha():Number
public function set envMapAlpha(value:Number):void
reflectivityMap | property |
reflectivityMap:BitmapData
A texture map that indicates the reflection amount for each texel
public function get reflectivityMap():BitmapData
public function set reflectivityMap(value:BitmapData):void
SphericEnvMapPBMaterial | () | Constructor |
public function SphericEnvMapPBMaterial(bitmap:BitmapData, normalMap:BitmapData, envMap:BitmapData, targetModel:Mesh, init:Object = null)
Creates a new SphericEnvMapPBMaterial object.
Parametersbitmap: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
|
updatePixelShader | () | method |
override protected function updatePixelShader(source:Object3D, view:View3D):void
Parameters
source:Object3D | |
view:View3D |