Packageaway3d.materials.methods
Classpublic class RimLightMethod
InheritanceRimLightMethod Inheritance ShadingMethodBase

Public Properties
 PropertyDefined by
  color : uint
RimLightMethod
 Inheritedpasses : Vector
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_globalPosVertexReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_mipmap : Boolean = true
ShadingMethodBase
 Inherited_needsGlobalPos : Boolean
ShadingMethodBase
 Inherited_needsNormals : Boolean
ShadingMethodBase
 Inherited_needsProjection : Boolean
ShadingMethodBase
 Inherited_needsUV : Boolean
ShadingMethodBase
 Inherited_needsView : Boolean
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_numLights : int
ShadingMethodBase
 Inherited_passes : Vector
ShadingMethodBase
 Inherited_projectionReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_repeat : Boolean
ShadingMethodBase
 Inherited_smooth : Boolean = true
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)
RimLightMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
ShadingMethodBase
Protected Methods
 MethodDefined by
 Inherited
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
Property detail
colorproperty
color:uint  [read-write]Implementation
    public function get color():uint
    public function set color(value:uint):void
powerproperty 
power:Number  [read-write]Implementation
    public function get power():Number
    public function set power(value:Number):void
strengthproperty 
strength:Number  [read-write]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)Parameters
color:uint (default = 0xffffff)
 
strength:Number (default = .4)
 
power:Number (default = 2)
Init Parameters
Method detail
activate()method
arcane override function activate(context:Context3D, contextIndex:uint):void Parameters
context:Context3D
 
contextIndex:uint
getFragmentPostLightingCode()method 
arcane override function getFragmentPostLightingCode(regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String Parameters
regCache:ShaderRegisterCache
 
targetReg:ShaderRegisterElement

Returns
String
Wiki link
Click to go to the wiki page for 'away3d.materials.methods.RimLightMethod'

Code examples

Comments