Package | away3d.materials.methods |
Class | public class BasicAmbientMethod |
Inheritance | BasicAmbientMethod ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Subclasses | EnvMapAmbientMethod |
Property | Defined By | ||
---|---|---|---|
ambient : Number
The strength of the ambient reflection of the surface. | BasicAmbientMethod | ||
ambientColor : uint
The colour of the ambient reflection of the surface. | BasicAmbientMethod | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
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 | ||
texture : Texture2DBase
The bitmapData to use to define the diffuse reflection color per texel. | BasicAmbientMethod |
Property | Defined By | ||
---|---|---|---|
_ambientInputRegister : ShaderRegisterElement | BasicAmbientMethod | ||
_passes : Vector.<MaterialPassBase> | ShadingMethodBase | ||
_sharedRegisters : ShaderRegisterData | ShadingMethodBase | ||
_useTexture : Boolean | BasicAmbientMethod |
Method | Defined By | ||
---|---|---|---|
Creates a new BasicAmbientMethod object. | BasicAmbientMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a ShadingMethodBase object into the current object. | BasicAmbientMethod | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
_ambientInputRegister | property |
protected var _ambientInputRegister:ShaderRegisterElement
_lightAmbientB | property |
arcane var _lightAmbientB:Number = 0
_lightAmbientG | property |
arcane var _lightAmbientG:Number = 0
_lightAmbientR | property |
arcane var _lightAmbientR:Number = 0
_useTexture | property |
protected var _useTexture:Boolean
ambient | property |
ambient:Number
The strength of the ambient reflection of the surface.
public function get ambient():Number
public function set ambient(value:Number):void
ambientColor | property |
ambientColor:uint
The colour of the ambient reflection of the surface.
public function get ambientColor():uint
public function set ambientColor(value:uint):void
texture | property |
texture:Texture2DBase
The bitmapData to use to define the diffuse reflection color per texel.
public function get texture():Texture2DBase
public function set texture(value:Texture2DBase):void
BasicAmbientMethod | () | Constructor |
public function BasicAmbientMethod()
Creates a new BasicAmbientMethod 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 |
getFragmentCode | () | method |
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.
|
setRenderState | () | method |
override arcane function setRenderState(vo:MethodVO, renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):void
Sets the render state for a single renderable.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
| |
renderable:IRenderable — The renderable currently being rendered.
| |
stage3DProxy:Stage3DProxy — The Stage3DProxy object currently used for rendering.
| |
camera:Camera3D — The camera from which the scene is currently rendered.
|