View source
class SubsurfaceScatteringDiffuseMethod
package away3d.materials.methods
extends CompositeDiffuseMethod › BasicDiffuseMethod › LightingMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
SubsurfaceScatteringDiffuseMethod provides a depth map-based diffuse shading method that mimics the scattering of light inside translucent surfaces. It allows light to shine through an object and to soften the diffuse shading. It can be used for candle wax, ice, skin, ...
Constructor
new(depthMapSize:Int = 512, depthMapOffset:Float = 15)
Creates a new SubsurfaceScatteringDiffuseMethod object.
Parameters:
depthMapSize | The size of the depth map used. |
|---|---|
depthMapOffset | The amount by which the rendered object will be inflated, to prevent depth map rounding errors. |