RimLightMethod provides a method to add rim lighting to a material. This adds a glow-like effect to edges of objects.

Static variables

@:value("add")staticinlineread onlyADD:String = "add"

@:value("mix")staticinlineread onlyMIX:String = "mix"

@:value("multiply")staticinlineread onlyMULTIPLY:String = "multiply"

Constructor

@:value({ blend : "mix", power : 2, strength : .4, color : 0xffffff })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.

Variables

blendMode:String

color:Int

power:Float

strength:Float

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