View source
class WrapDiffuseMethod
package away3d.materials.methods
extends BasicDiffuseMethod › LightingMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
WrapDiffuseMethod is an alternative to BasicDiffuseMethod in which the light is allowed to be "wrapped around" the normally dark area, to some extent. It can be used as a crude approximation to Oren-Nayar or simple subsurface scattering.
Constructor
new(wrapFactor:Float = .5)
Creates a new WrapDiffuseMethod object.
Parameters:
wrapFactor | A factor to indicate the amount by which the light is allowed to wrap |
|---|