View source
class RimLightMethod
package away3d.materials.methods
extends EffectMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
RimLightMethod provides a method to add rim lighting to a material. This adds a glow-like effect to edges of objects.
Static variables
Constructor
new(color:Int = 0xffffff, strength:Float = .4, power:Float = 2, blend:String = "mix")
Creates a new RimLightMethod.
Parameters:
color | The colour of the rim light. |
|---|---|
strength | The strength of the rim light. |
power | The power of the rim light. Higher values will result in a higher edge fall-off. |
blend | The blend mode with which to add the light to the object. |