Package | away3d.materials.methods |
Class | public class SimpleWaterNormalMethod |
Inheritance | SimpleWaterNormalMethod BasicNormalMethod ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
normalMap : Texture2DBase [override]
The texture containing the normals per pixel. | SimpleWaterNormalMethod | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
secondaryNormalMap : Texture2DBase
A second normal map that will be combined with the first to create a wave-like animation pattern. | SimpleWaterNormalMethod | ||
water1OffsetX : Number
The translation of the first wave layer along the X-axis. | SimpleWaterNormalMethod | ||
water1OffsetY : Number
The translation of the first wave layer along the Y-axis. | SimpleWaterNormalMethod | ||
water2OffsetX : Number
The translation of the second wave layer along the X-axis. | SimpleWaterNormalMethod | ||
water2OffsetY : Number
The translation of the second wave layer along the Y-axis. | SimpleWaterNormalMethod |
Method | Defined By | ||
---|---|---|---|
Creates a new SimpleWaterNormalMethod object. | SimpleWaterNormalMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a ShadingMethodBase object into the current object. | BasicNormalMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | SimpleWaterNormalMethod | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
normalMap | property |
normalMap:Texture2DBase
[override] The texture containing the normals per pixel.
public function get normalMap():Texture2DBase
public function set normalMap(value:Texture2DBase):void
secondaryNormalMap | property |
secondaryNormalMap:Texture2DBase
A second normal map that will be combined with the first to create a wave-like animation pattern.
public function get secondaryNormalMap():Texture2DBase
public function set secondaryNormalMap(value:Texture2DBase):void
water1OffsetX | property |
water1OffsetX:Number
The translation of the first wave layer along the X-axis.
public function get water1OffsetX():Number
public function set water1OffsetX(value:Number):void
water1OffsetY | property |
water1OffsetY:Number
The translation of the first wave layer along the Y-axis.
public function get water1OffsetY():Number
public function set water1OffsetY(value:Number):void
water2OffsetX | property |
water2OffsetX:Number
The translation of the second wave layer along the X-axis.
public function get water2OffsetX():Number
public function set water2OffsetX(value:Number):void
water2OffsetY | property |
water2OffsetY:Number
The translation of the second wave layer along the Y-axis.
public function get water2OffsetY():Number
public function set water2OffsetY(value:Number):void
SimpleWaterNormalMethod | () | Constructor |
public function SimpleWaterNormalMethod(waveMap1:Texture2DBase, waveMap2:Texture2DBase)
Creates a new SimpleWaterNormalMethod object.
ParameterswaveMap1:Texture2DBase — A normal map containing one layer of a wave structure.
| |
waveMap2:Texture2DBase — A normal map containing a second layer of a wave structure.
|
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
Cleans up any resources used by the current object.
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initConstants | () | method |
override arcane function initConstants(vo:MethodVO):void
Initializes unchanging shader constants using the data from a MethodVO.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|