Packageaway3d.materials.methods
Classpublic class SimpleWaterNormalMethod
InheritanceSimpleWaterNormalMethod Inheritance BasicNormalMethod Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  normalMap : Texture2DBase
[override]
SimpleWaterNormalMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  secondaryNormalMap : Texture2DBase
SimpleWaterNormalMethod
 InheritedviewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
  water1OffsetX : Number
SimpleWaterNormalMethod
  water1OffsetY : Number
SimpleWaterNormalMethod
  water2OffsetX : Number
SimpleWaterNormalMethod
  water2OffsetY : Number
SimpleWaterNormalMethod
Protected Properties
 PropertyDefined By
 Inherited_globalPosReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_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
  
SimpleWaterNormalMethod
 Inherited
[override]
BasicNormalMethod
  
dispose():void
[override]
SimpleWaterNormalMethod
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
normalMapproperty
normalMap:Texture2DBase[override]


Implementation
    public function get normalMap():Texture2DBase
    public function set normalMap(value:Texture2DBase):void
secondaryNormalMapproperty 
secondaryNormalMap:Texture2DBase


Implementation
    public function get secondaryNormalMap():Texture2DBase
    public function set secondaryNormalMap(value:Texture2DBase):void
water1OffsetXproperty 
water1OffsetX:Number


Implementation
    public function get water1OffsetX():Number
    public function set water1OffsetX(value:Number):void
water1OffsetYproperty 
water1OffsetY:Number


Implementation
    public function get water1OffsetY():Number
    public function set water1OffsetY(value:Number):void
water2OffsetXproperty 
water2OffsetX:Number


Implementation
    public function get water2OffsetX():Number
    public function set water2OffsetX(value:Number):void
water2OffsetYproperty 
water2OffsetY:Number


Implementation
    public function get water2OffsetY():Number
    public function set water2OffsetY(value:Number):void
Constructor Detail
SimpleWaterNormalMethod()Constructor
public function SimpleWaterNormalMethod(waveMap1:Texture2DBase, waveMap2:Texture2DBase)



Parameters
waveMap1:Texture2DBase
 
waveMap2:Texture2DBase
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

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

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