| Package | away3d.materials.methods |
| Class | public class CelDiffuseMethod |
| Inheritance | CelDiffuseMethod CompositeDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | alphaThreshold : Number [override] | CompositeDiffuseMethod | |
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | baseMethod : BasicDiffuseMethod
The base diffuse method on which this method's shading is based. | 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 | ||
![]() | name : String | NamedAssetBase | |
![]() | originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | |
![]() | 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 | |
| Method | Defined By | ||
|---|---|---|---|
CelDiffuseMethod(levels:uint = 3, baseDiffuseMethod:BasicDiffuseMethod = null)
Creates a new CelDiffuseMethod object. | CelDiffuseMethod | ||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | 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 | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| levels | property |
levels:uint public function get levels():uint public function set levels(value:uint):void| smoothness | property |
smoothness:NumberThe 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 |