Packageaway3d.materials.methods
Classpublic class RimLightMethod
InheritanceRimLightMethod Inheritance EffectMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  color : uint
RimLightMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  power : Number
RimLightMethod
  strength : Number
RimLightMethod
 InheritedviewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Protected Properties
 PropertyDefined By
 Inherited_globalPosReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_projectionReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_secondaryUVFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_tangentVaryingReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_uvFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Public Methods
 MethodDefined By
  
RimLightMethod(color:uint = 0xffffff, strength:Number = .4, power:Number = 2, blend:String = mix)
RimLightMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose():void
Cleans up any resources used by the current object.
ShadingMethodBase
Protected Methods
 MethodDefined By
 Inherited
getTexSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, uvReg:ShaderRegisterElement = null, forceWrap:String = null):String
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Public Constants
 ConstantDefined By
  ADD : String = add
[static]
RimLightMethod
  MIX : String = mix
[static]
RimLightMethod
  MULTIPLY : String = multiply
[static]
RimLightMethod
Property Detail
colorproperty
color:uint


Implementation
    public function get color():uint
    public function set color(value:uint):void
powerproperty 
power:Number


Implementation
    public function get power():Number
    public function set power(value:Number):void
strengthproperty 
strength:Number


Implementation
    public function get strength():Number
    public function set strength(value:Number):void
Constructor Detail
RimLightMethod()Constructor
public function RimLightMethod(color:uint = 0xffffff, strength:Number = .4, power:Number = 2, blend:String = mix)



Parameters
color:uint (default = 0xffffff)
 
strength:Number (default = .4)
 
power:Number (default = 2)
 
blend:String (default = mix)
Method Detail
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

Returns
String
initConstants()method 
override arcane function initConstants(vo:MethodVO):void

Parameters

vo:MethodVO

initVO()method 
override arcane function initVO(vo:MethodVO):void

Parameters

vo:MethodVO

Constant Detail
ADDConstant
public static const ADD:String = add

MIXConstant 
public static const MIX:String = mix

MULTIPLYConstant 
public static const MULTIPLY:String = multiply