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



Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 Inheritedname : String
NamedAssetBase
  normalMap : Texture2DBase
[override]
SimpleWaterNormalMethod
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  secondaryNormalMap : Texture2DBase
SimpleWaterNormalMethod
  water1OffsetX : Number
SimpleWaterNormalMethod
  water1OffsetY : Number
SimpleWaterNormalMethod
  water2OffsetX : Number
SimpleWaterNormalMethod
  water2OffsetY : Number
SimpleWaterNormalMethod
Protected Properties
 PropertyDefined By
 Inherited_normalTextureRegister : ShaderRegisterElement
BasicNormalMethod
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
Public Methods
 MethodDefined By
  
SimpleWaterNormalMethod
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
 Inherited
[override]
BasicNormalMethod
  
dispose():void
[override]
SimpleWaterNormalMethod
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
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
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
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