Package | away3d.materials.methods |
Class | public class CelSpecularMethod |
Inheritance | CelSpecularMethod CompositeSpecularMethod BasicSpecularMethod LightingMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
gloss : Number [override]
The sharpness of the specular highlight. | CompositeSpecularMethod | ||
passes : Vector.<MaterialPassBase> [override] [read-only]
Any passes required that render to a texture used by this method. | CompositeSpecularMethod | ||
shadingModel : String [override]
The model used by the specular shader
| CompositeSpecularMethod | ||
smoothness : Number
The smoothness of the highlight edge. | CelSpecularMethod | ||
specular : Number [override]
The overall strength of the specular highlights. | CompositeSpecularMethod | ||
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 | ||
texture : Texture2DBase [override]
The bitmapData that encodes the specular highlight strength per texel in the red channel, and the sharpness
in the green channel. | CompositeSpecularMethod | ||
viewDirVaryingReg : ShaderRegisterElement [override] | CompositeSpecularMethod |
Method | Defined By | ||
---|---|---|---|
CelSpecularMethod(specularCutOff:Number = .5, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new CelSpecularMethod object. | CelSpecularMethod | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a BasicSpecularMethod object into the current object. | BasicSpecularMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompositeSpecularMethod |
smoothness | property |
smoothness:Number
The smoothness of the highlight edge.
public function get smoothness():Number
public function set smoothness(value:Number):void
specularCutOff | property |
specularCutOff:Number
The threshold at which the specular highlight should be shown.
public function get specularCutOff():Number
public function set specularCutOff(value:Number):void
CelSpecularMethod | () | Constructor |
public function CelSpecularMethod(specularCutOff:Number = .5, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new CelSpecularMethod object.
ParametersspecularCutOff: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 |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
cleanCompilationData | () | method |
override arcane function cleanCompilationData():void
getFragmentPreLightingCode | () | method |
override arcane function getFragmentPreLightingCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache |
String |