Package | away3d.materials.methods |
Class | public class CelDiffuseMethod |
Inheritance | CelDiffuseMethod WrapDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
alphaThreshold : Number | WrapDiffuseMethod | ||
bitmapData : BitmapData
The bitmapData to use to define the diffuse reflection color per texel.
| WrapDiffuseMethod | ||
diffuseAlpha : Number
The alpha component of the diffuse reflection.
| WrapDiffuseMethod | ||
diffuseColor : uint
The color of the diffuse reflection when not using a texture.
| WrapDiffuseMethod | ||
levels : uint | CelDiffuseMethod | ||
passes : Vector
Any passes required that render to a texture used by this method.
| ShadingMethodBase | ||
shadowRegister : ShaderRegisterElement | WrapDiffuseMethod | ||
smoothness : Number
The smoothness of the edge between 2 shading levels.
| CelDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | ||
viewDirVaryingReg : ShaderRegisterElement | WrapDiffuseMethod |
Method | Defined by | ||
---|---|---|---|
Creates a new CelDiffuseMethod object.
| CelDiffuseMethod | ||
Copies the state from a BasicDiffuseMethod object into the current object.
| BasicDiffuseMethod | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| WrapDiffuseMethod | ||
invalidateBitmapData():void
Marks the texture for update next on the next render.
| WrapDiffuseMethod |
levels | property |
levels:uint
[read-write]Implementation
public function get levels():uint
public function set levels(value:uint):void
smoothness | property |
smoothness:Number
[read-write]The smoothness of the edge between 2 shading levels.
Implementation public function get smoothness():Number
public function set smoothness(value:Number):void
CelDiffuseMethod | () | constructor |
public function CelDiffuseMethod(levels:uint = 3, baseDiffuseMethod:BasicDiffuseMethod = null)
Parameters
levels: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 |
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 |