| 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 | |
![]() | 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 BasicAmbientMethod 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:NumberThe strength of the ambient reflection of the surface.
public function get ambient():Number public function set ambient(value:Number):void| ambientColor | property |
ambientColor:uintThe colour of the ambient reflection of the surface.
public function get ambientColor():uint public function set ambientColor(value:uint):void| texture | property |
texture:Texture2DBaseThe 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):voidCopies the state from a BasicAmbientMethod 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 |
| initVO | () | method |
| setRenderState | () | method |
override arcane function setRenderState(vo:MethodVO, renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):voidParameters
vo:MethodVO | |
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D |