Packageaway3d.materials.methods
Classpublic class HeightMapNormalMethod
InheritanceHeightMapNormalMethod Inheritance BasicNormalMethod Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritednormalMap : Texture2DBase
BasicNormalMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
Protected Properties
 PropertyDefined By
 Inherited_normalTextureRegister : ShaderRegisterElement
BasicNormalMethod
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
Public Methods
 MethodDefined By
  
HeightMapNormalMethod(heightMap:Texture2DBase, worldWidth:Number, worldHeight:Number, worldDepth:Number)
HeightMapNormalMethod
  
[override]
HeightMapNormalMethod
 Inherited
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
tangentSpaceproperty
tangentSpace:Boolean  [read-only] [override]


Implementation
    arcane function get tangentSpace():Boolean
Constructor Detail
HeightMapNormalMethod()Constructor
public function HeightMapNormalMethod(heightMap:Texture2DBase, worldWidth:Number, worldHeight:Number, worldDepth:Number)



Parameters
heightMap:Texture2DBase
 
worldWidth:Number
 
worldHeight:Number
 
worldDepth:Number
Method Detail
copyFrom()method
override public function copyFrom(method:ShadingMethodBase):void

Parameters

method:ShadingMethodBase

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