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

@:value({ depthMapOffset : 15, depthMapSize : 512 })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.

Variables

Inherited Variables

Inherited Methods

Defined by CompositeDiffuseMethod

dispose():Void

@inheritDoc

Defined by BasicDiffuseMethod

copyFrom(method:ShadingMethodBase):Void

@inheritDoc

generateMip(stage3DProxy:Stage3DProxy):Void

Forces the creation of the texture.

Parameters:

stage3DProxy

The Stage3DProxy used by the renderer

Defined by NamedAssetBase

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

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