Package | away3d.materials.methods |
Class | public class CelSpecularMethod |
Inheritance | CelSpecularMethod WrapSpecularMethod BasicSpecularMethod LightingMethodBase ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
bitmapData : BitmapData
The bitmapData that encodes the specular highlight strength per texel in the red channel, and the sharpness
in the green channel.
| WrapSpecularMethod | ||
gloss : Number
The sharpness of the specular highlight.
| BasicSpecularMethod | ||
passes : Vector
Any passes required that render to a texture used by this method.
| WrapSpecularMethod | ||
shadowRegister : ShaderRegisterElement | WrapSpecularMethod | ||
smoothness : Number
The smoothness of the highlight edge.
| CelSpecularMethod | ||
specular : Number
The overall strength of the specular highlights.
| BasicSpecularMethod | ||
specularColor : uint
The colour of the specular reflection of the surface.
| BasicSpecularMethod | ||
specularCutOff : Number
The threshold at which the specular highlight should be shown.
| CelSpecularMethod | ||
viewDirVaryingReg : ShaderRegisterElement | WrapSpecularMethod |
Method | Defined by | ||
---|---|---|---|
Creates a new CelSpecularMethod object.
| CelSpecularMethod | ||
Copies the state from a BasicSpecularMethod object into the current object.
| BasicSpecularMethod | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| WrapSpecularMethod | ||
invalidateBitmapData():void
Marks the texture for update next on the next render.
| WrapSpecularMethod |
smoothness | property |
smoothness:Number
[read-write]The smoothness of the highlight edge.
Implementation public function get smoothness():Number
public function set smoothness(value:Number):void
specularCutOff | property |
specularCutOff:Number
[read-write]The threshold at which the specular highlight should be shown.
Implementation public function get specularCutOff():Number
public function set specularCutOff(value:Number):void
CelSpecularMethod | () | constructor |
public function CelSpecularMethod(specularCutOff:Number = .5, baseSpecularMethod:BasicSpecularMethod = null)
Parameters
specularCutOff:Number (default = .5 ) — The threshold at which the specular highlight should be shown.
|
|
baseSpecularMethod:BasicSpecularMethod (default = null ) — An optional specular method on which the cartoon shading is based. If ommitted, BasicSpecularMethod is used.
|
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 |
getFragmentAGALPreLightingCode | () | method |
arcane override function getFragmentAGALPreLightingCode(regCache:ShaderRegisterCache):String
Get the fragment shader code that will be needed before any per-light code is added.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
String |