BasicSpecularMethod provides the default shading method for Blinn-Phong specular highlights.
bitmapData:BitmapData
[read-write]
The bitmapData that encodes the specular highlight strength per texel in the red channel, and the sharpness
in the green channel.
Implementation
public function get bitmapData():BitmapData
public function set bitmapData(value:BitmapData):void
gloss:Number
[read-write]
The sharpness of the specular highlight.
Implementation
public function get gloss():Number
public function set gloss(value:Number):void
protected var _mipmapBitmap:BitmapData
needsUV:Boolean
[read-only]
Indicates whether the material requires uv coordinates.
Implementation
arcane function get needsUV():Boolean
needsView:Boolean
[read-only]
Indicates whether the material requires the view direction.
Implementation
arcane function get needsView():Boolean
numLights:int
[read-write]
Implementation
arcane function get numLights():int
arcane function set numLights(value:int):void
shadowRegister:ShaderRegisterElement
[write-only]
Implementation
public function set shadowRegister(value:ShaderRegisterElement):void
specular:Number
[read-write]
The overall strength of the specular highlights.
Implementation
public function get specular():Number
public function set specular(value:Number):void
specularColor:uint
[read-write]
The colour of the specular reflection of the surface.
Implementation
public function get specularColor():uint
public function set specularColor(value:uint):void
protected var _specularData:Vector
protected var _specularDataIndex:uint
protected var _specularDataRegister:ShaderRegisterElement
arcane var _specularR:Number = 1
protected var _specularTexData:ShaderRegisterElement
protected var _specularTexIndex:uint
protected var _specularTextureRegister:ShaderRegisterElement
protected var _totalLightColorReg:ShaderRegisterElement
protected var _useTexture:Boolean
public function BasicSpecularMethod()
Init Parameters
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameters
| context:Context3D — The Context3D currently used for rendering.
|
|
| contextIndex:uint |
public override function copyFrom(method:ShadingMethodBase):void
Copies the state from a BasicSpecularMethod object into the current object.
Parameters
arcane override function deactivate(context:Context3D):void
Parameters
public override function dispose(deep:Boolean):void
Cleans up any resources used by the current object.
Parameters
| deep:Boolean — Indicates whether other resources should be cleaned up, that could potentially be shared across different instances.
|
arcane override function getFragmentAGALPreLightingCode(regCache:ShaderRegisterCache):String
Get the fragment shader code that will be needed before any per-light code is added.
Parameters
Returns
arcane override function getFragmentCodePerLight(lightIndex:int, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light.
Parameters
Returns
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.
Parameters
Returns
public function invalidateBitmapData():void
Marks the texture for update next on the next render.
arcane override function reset():void
Resets the method's state for compilation.