Package | away3d.materials.methods |
Class | public class CelSpecularMethod |
Inheritance | CelSpecularMethod CompositeSpecularMethod BasicSpecularMethod LightingMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
baseMethod : BasicSpecularMethod
The base specular method on which this method's shading is based. | CompositeSpecularMethod | ||
gloss : Number [override]
The sharpness of the specular highlight. | CompositeSpecularMethod | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [override] [read-only]
Any passes required that render to a texture used by this method. | 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 |
Method | Defined By | ||
---|---|---|---|
CelSpecularMethod(specularCutOff:Number = .5, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new CelSpecularMethod object. | CelSpecularMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a ShadingMethodBase object into the current object. | BasicSpecularMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompositeSpecularMethod | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
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 |