Package | away3d.materials.methods |
Class | public class RimLightMethod |
Inheritance | RimLightMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
color : uint | RimLightMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
power : Number | RimLightMethod | ||
strength : Number | RimLightMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
RimLightMethod(color:uint = 0xffffff, strength:Number = .4, power:Number = 2, blend:String = mix) | RimLightMethod | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase |
Constant | Defined By | ||
---|---|---|---|
ADD : String = add [static] | RimLightMethod | ||
MIX : String = mix [static] | RimLightMethod | ||
MULTIPLY : String = multiply [static] | RimLightMethod |
color | property |
color:uint
public function get color():uint
public function set color(value:uint):void
power | property |
power:Number
public function get power():Number
public function set power(value:Number):void
strength | property |
strength:Number
public function get strength():Number
public function set strength(value:Number):void
RimLightMethod | () | Constructor |
public function RimLightMethod(color:uint = 0xffffff, strength:Number = .4, power:Number = 2, blend:String = mix)
color:uint (default = 0xffffff )
| |
strength:Number (default = .4 )
| |
power:Number (default = 2 )
| |
blend:String (default = mix )
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initConstants | () | method |
initVO | () | method |
ADD | Constant |
public static const ADD:String = add
MIX | Constant |
public static const MIX:String = mix
MULTIPLY | Constant |
public static const MULTIPLY:String = multiply