Package | away3d.materials.methods |
Class | public class BasicNormalMethod |
Inheritance | BasicNormalMethod ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Subclasses | HeightMapNormalMethod, SimpleWaterNormalMethod |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
normalMap : Texture2DBase
The texture containing the normals per pixel. | BasicNormalMethod | ||
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 |
Property | Defined By | ||
---|---|---|---|
_normalTextureRegister : ShaderRegisterElement | BasicNormalMethod | ||
_passes : Vector.<MaterialPassBase> | ShadingMethodBase | ||
_sharedRegisters : ShaderRegisterData | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
Creates a new BasicNormalMethod object. | BasicNormalMethod | ||
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. | BasicNormalMethod | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
_normalTextureRegister | property |
protected var _normalTextureRegister:ShaderRegisterElement
hasOutput | property |
hasOutput:Boolean
[read-only] Indicates if the normal method output is not based on a texture (if not, it will usually always return true) Override if subclasses are different.
arcane function get hasOutput():Boolean
normalMap | property |
normalMap:Texture2DBase
The texture containing the normals per pixel.
public function get normalMap():Texture2DBase
public function set normalMap(value:Texture2DBase):void
tangentSpace | property |
tangentSpace:Boolean
[read-only] Indicates whether or not this method outputs normals in tangent space. Override for object-space normals.
arcane function get tangentSpace():Boolean
BasicNormalMethod | () | Constructor |
public function BasicNormalMethod()
Creates a new BasicNormalMethod object.
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
Copies the state from a ShadingMethodBase object into the current object.
Parameters
method:ShadingMethodBase |
dispose | () | method |
override public function dispose():void
Cleans up any resources used by the current object.
getFragmentCode | () | method |
arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
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.
|