Packageaway3d.materials.methods
Classpublic class BasicNormalMethod
InheritanceBasicNormalMethod Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher
Subclasses HeightMapNormalMethod, SimpleWaterNormalMethod



Public Properties
 PropertyDefined By
  normalMap : Texture2DBase
BasicNormalMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
 InheritedviewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Protected Properties
 PropertyDefined By
 Inherited_globalPosReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
  _normalTextureRegister : ShaderRegisterElement
BasicNormalMethod
 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
  
BasicNormalMethod
  
[override]
BasicNormalMethod
  
dispose():void
[override]
BasicNormalMethod
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
Property Detail
_normalTextureRegisterproperty
protected var _normalTextureRegister:ShaderRegisterElement

hasOutputproperty 
hasOutput:Boolean  [read-only]

Override this is normal method output is not based on a texture (if not, it will usually always return true)


Implementation
    arcane function get hasOutput():Boolean
normalMapproperty 
normalMap:Texture2DBase


Implementation
    public function get normalMap():Texture2DBase
    public function set normalMap(value:Texture2DBase):void
tangentSpaceproperty 
tangentSpace:Boolean  [read-only]


Implementation
    arcane function get tangentSpace():Boolean
Constructor Detail
BasicNormalMethod()Constructor
public function BasicNormalMethod()



Method Detail
activate()method
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

cleanCompilationData()method 
override arcane function cleanCompilationData():void

copyFrom()method 
override public function copyFrom(method:ShadingMethodBase):void

Parameters

method:ShadingMethodBase

dispose()method 
override public function dispose():void

getFragmentCode()method 
arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String

Parameters

vo:MethodVO
 
regCache:ShaderRegisterCache
 
targetReg:ShaderRegisterElement

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

Parameters

vo:MethodVO