Package | away3d.materials.methods |
Class | public class OutlineMethod |
Inheritance | OutlineMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | EffectMethodBase | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
outlineColor : uint
The colour of the outline. | OutlineMethod | ||
outlineSize : Number
The size of the outline. | OutlineMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
showInnerLines : Boolean
Indicates whether or not strokes should be potentially drawn over the existing model. | OutlineMethod |
Method | Defined By | ||
---|---|---|---|
OutlineMethod(outlineColor:uint = 0x000000, outlineSize:Number = 1, showInnerLines:Boolean = true, dedicatedWaterProofMesh:Boolean = false)
Creates a new OutlineMethod object. | OutlineMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
outlineColor | property |
outlineColor:uint
The colour of the outline.
public function get outlineColor():uint
public function set outlineColor(value:uint):void
outlineSize | property |
outlineSize:Number
The size of the outline.
public function get outlineSize():Number
public function set outlineSize(value:Number):void
showInnerLines | property |
showInnerLines:Boolean
Indicates whether or not strokes should be potentially drawn over the existing model. Set this to true to draw outlines for geometry overlapping in the view, useful to achieve a cel-shaded drawing outline. Setting this to false will only cause the outline to appear around the 2D projection of the geometry.
public function get showInnerLines():Boolean
public function set showInnerLines(value:Boolean):void
OutlineMethod | () | Constructor |
public function OutlineMethod(outlineColor:uint = 0x000000, outlineSize:Number = 1, showInnerLines:Boolean = true, dedicatedWaterProofMesh:Boolean = false)
Creates a new OutlineMethod object.
ParametersoutlineColor:uint (default = 0x000000 ) — The colour of the outline stroke
| |
outlineSize:Number (default = 1 ) — The size of the outline stroke
| |
showInnerLines:Boolean (default = true ) — Indicates whether or not strokes should be potentially drawn over the existing model.
| |
dedicatedWaterProofMesh:Boolean (default = false ) — Used to stitch holes appearing due to mismatching normals for overlapping vertices. Warning: this will create a new mesh that is incompatible with animations!
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|
reset | () | method |
override arcane function reset():void
Resets the compilation state of the method.