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
Protected Properties
 PropertyDefined By
  _normalTextureRegister : ShaderRegisterElement
BasicNormalMethod
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
Public Methods
 MethodDefined By
  
BasicNormalMethod
  
[override]
BasicNormalMethod
  
dispose():void
[override]
BasicNormalMethod
Protected Methods
 MethodDefined By
 Inherited
getTex2DSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, 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
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