View source
class RefractionEnvMapMethod
package away3d.materials.methods
extends EffectMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
RefractionEnvMapMethod provides a method to add refracted transparency based on cube maps.
Constructor
new(envMap:CubeTextureBase, refractionIndex:Float = .1, dispersionR:Float = 0, dispersionG:Float = 0, dispersionB:Float = 0)
Creates a new RefractionEnvMapMethod object. Example values for dispersion are: dispersionR: -0.03, dispersionG: -0.01, dispersionB: = .0015
Parameters:
envMap | The environment map containing the refracted scene. |
|---|---|
refractionIndex | The refractive index of the material. |
dispersionR | The amount of chromatic dispersion of the red channel. Defaults to 0 (none). |
dispersionG | The amount of chromatic dispersion of the green channel. Defaults to 0 (none). |
dispersionB | The amount of chromatic dispersion of the blue channel. Defaults to 0 (none). |