RefractionEnvMapMethod provides a method to add refracted transparency based on cube maps.

Constructor

@:value({ dispersionB : 0, dispersionG : 0, dispersionR : 0, refractionIndex : .1 })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).

Variables

Inherited Variables

Defined by EffectMethodBase

read onlyassetType:String

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ShadingMethodBase

copyFrom(method:ShadingMethodBase):Void

Copies the state from a ShadingMethodBase object into the current object.

dispose():Void

Cleans up any resources used by the current object.

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void