Package | away3d.materials.methods |
Class | public class ShadowMapMethodBase |
Inheritance | ShadowMapMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Implements | IAsset |
Subclasses | CascadeShadowMapMethod, SimpleShadowMapMethodBase |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The "transparency" of the shadows. | ShadowMapMethodBase | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | ShadowMapMethodBase | ||
castingLight : LightBase [read-only]
The light casting the shadows. | ShadowMapMethodBase | ||
epsilon : Number
A small value to counter floating point precision errors when comparing values in the shadow map with the
calculated depth value. | ShadowMapMethodBase | ||
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> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase |
Property | Defined By | ||
---|---|---|---|
_alpha : Number = 1 | ShadowMapMethodBase | ||
_castingLight : LightBase | ShadowMapMethodBase | ||
_epsilon : Number = .02 | ShadowMapMethodBase | ||
_passes : Vector.<MaterialPassBase> | ShadingMethodBase | ||
_shadowMapper : ShadowMapperBase | ShadowMapMethodBase | ||
_sharedRegisters : ShaderRegisterData | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
ShadowMapMethodBase(castingLight:LightBase)
Creates a new ShadowMapMethodBase object. | ShadowMapMethodBase | ||
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 |
_alpha | property |
protected var _alpha:Number = 1
_castingLight | property |
protected var _castingLight:LightBase
_epsilon | property |
protected var _epsilon:Number = .02
_shadowMapper | property |
protected var _shadowMapper:ShadowMapperBase
alpha | property |
alpha:Number
The "transparency" of the shadows. This allows making shadows less strong.
public function get alpha():Number
public function set alpha(value:Number):void
assetType | property |
assetType:String
[read-only] The type of the asset.
public function get assetType():String
castingLight | property |
castingLight:LightBase
[read-only] The light casting the shadows.
public function get castingLight():LightBase
epsilon | property |
epsilon:Number
A small value to counter floating point precision errors when comparing values in the shadow map with the calculated depth value. Increase this if shadow banding occurs, decrease it if the shadow seems to be too detached.
public function get epsilon():Number
public function set epsilon(value:Number):void
ShadowMapMethodBase | () | Constructor |
public function ShadowMapMethodBase(castingLight:LightBase)
Creates a new ShadowMapMethodBase object.
ParameterscastingLight:LightBase — The light used to cast shadows.
|
getFragmentCode | () | method |
arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |