Package | away3d.materials.methods |
Class | public class BasicAmbientMethod |
Inheritance | BasicAmbientMethod ShadingMethodBase |
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 | ||
passes : Vector
Any passes required that render to a texture used by this method.
| ShadingMethodBase | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
_ambientInputIndex : int | BasicAmbientMethod | ||
_ambientInputRegister : ShaderRegisterElement | BasicAmbientMethod | ||
_globalPosVertexReg : ShaderRegisterElement | ShadingMethodBase | ||
_mipmap : Boolean = true | ShadingMethodBase | ||
_needsGlobalPos : Boolean | ShadingMethodBase | ||
_needsNormals : Boolean | ShadingMethodBase | ||
_needsProjection : Boolean | ShadingMethodBase | ||
_needsUV : Boolean | ShadingMethodBase | ||
_needsView : Boolean | ShadingMethodBase | ||
_normalFragmentReg : ShaderRegisterElement | ShadingMethodBase | ||
_numLights : int | ShadingMethodBase | ||
_passes : Vector | ShadingMethodBase | ||
_projectionReg : ShaderRegisterElement | ShadingMethodBase | ||
_repeat : Boolean | ShadingMethodBase | ||
_smooth : Boolean = true | ShadingMethodBase | ||
_uvFragmentReg : ShaderRegisterElement | ShadingMethodBase | ||
_viewDirFragmentReg : ShaderRegisterElement | ShadingMethodBase | ||
_viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined by | ||
---|---|---|---|
Creates a new BasicAmbientMethod object.
| BasicAmbientMethod | ||
Copies the state from a BasicAmbientMethod object into the current object.
| BasicAmbientMethod | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| ShadingMethodBase |
ambient | property |
ambient:Number
[read-write]The strength of the ambient reflection of the surface.
Implementation public function get ambient():Number
public function set ambient(value:Number):void
ambientColor | property |
ambientColor:uint
[read-write]The colour of the ambient reflection of the surface.
Implementation public function get ambientColor():uint
public function set ambientColor(value:uint):void
_ambientInputIndex | property |
protected var _ambientInputIndex:int
_ambientInputRegister | property |
protected var _ambientInputRegister:ShaderRegisterElement
numLights | property |
numLights:int
[read-write]Implementation
arcane function get numLights():int
arcane function set numLights(value:int):void
BasicAmbientMethod | () | constructor |
public function BasicAmbientMethod()
Init Parameters
activate | () | method |
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameterscontext:Context3D — The Context3D currently used for rendering.
|
|
contextIndex:uint |
copyFrom | () | method |
public override function copyFrom(method:ShadingMethodBase):void
Copies the state from a BasicAmbientMethod object into the current object.
Parametersmethod:ShadingMethodBase |
getFragmentPostLightingCode | () | method |
arcane override function getFragmentPostLightingCode(regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Get the fragment shader code that should be added after all per-light code. Usually composits everything to the target register.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
|
targetReg:ShaderRegisterElement |
String |