Package | away3d.materials.methods |
Class | public class CelDiffuseMethod |
Inheritance | CelDiffuseMethod CompositeDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alphaThreshold : Number [override] | CompositeDiffuseMethod | ||
diffuseAlpha : Number [override]
The alpha component of the diffuse reflection. | CompositeDiffuseMethod | ||
diffuseColor : uint [override]
The color of the diffuse reflection when not using a texture. | CompositeDiffuseMethod | ||
levels : uint | CelDiffuseMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
smoothness : Number
The smoothness of the edge between 2 shading levels. | CelDiffuseMethod | ||
texture : Texture2DBase [override]
The bitmapData to use to define the diffuse reflection color per texel. | CompositeDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | ||
viewDirVaryingReg : ShaderRegisterElement [override] | CompositeDiffuseMethod |
Method | Defined By | ||
---|---|---|---|
CelDiffuseMethod(levels:uint = 3, baseDiffuseMethod:BasicDiffuseMethod = null)
Creates a new CelDiffuseMethod object. | CelDiffuseMethod | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a BasicDiffuseMethod object into the current object. | BasicDiffuseMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompositeDiffuseMethod | ||
generateMip(stage3DProxy:Stage3DProxy):void | BasicDiffuseMethod |
levels | property |
levels:uint
public function get levels():uint
public function set levels(value:uint):void
smoothness | property |
smoothness:Number
The smoothness of the edge between 2 shading levels.
public function get smoothness():Number
public function set smoothness(value:Number):void
CelDiffuseMethod | () | Constructor |
public function CelDiffuseMethod(levels:uint = 3, baseDiffuseMethod:BasicDiffuseMethod = null)
Creates a new CelDiffuseMethod object.
Parameterslevels:uint (default = 3 ) — The amount of shadow gradations.
| |
baseDiffuseMethod:BasicDiffuseMethod (default = null ) — An optional diffuse method on which the cartoon shading is based. If ommitted, BasicDiffuseMethod 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 |
initConstants | () | method |