Package | away3d.materials.compilation |
Class | public class MethodDependencyCounter |
Inheritance | MethodDependencyCounter Object |
See also
Property | Defined By | ||
---|---|---|---|
globalPosDependencies : uint [read-only]
The amount of dependencies on the global position. | MethodDependencyCounter | ||
normalDependencies : uint [read-only]
The amount of dependencies on the normal vector. | MethodDependencyCounter | ||
projectionDependencies : uint [read-only]
The amount of dependencies on the projected position. | MethodDependencyCounter | ||
secondaryUVDependencies : uint [read-only]
The amount of dependencies on the secondary UV coordinates. | MethodDependencyCounter | ||
tangentDependencies : uint [read-only]
The amount of tangent vector dependencies (fragment shader). | MethodDependencyCounter | ||
usesGlobalPosFragment : Boolean [read-only]
Indicates whether there are any dependencies on the world-space position vector. | MethodDependencyCounter | ||
uvDependencies : uint [read-only]
The amount of dependencies on the primary UV coordinates. | MethodDependencyCounter | ||
viewDirDependencies : uint [read-only]
The amount of dependencies on the view direction. | MethodDependencyCounter |
Method | Defined By | ||
---|---|---|---|
Creates a new MethodDependencyCounter object. | MethodDependencyCounter | ||
addWorldSpaceDependencies(fragmentLights:Boolean):void
Adds any external world space dependencies, used to force world space calculations. | MethodDependencyCounter | ||
includeMethodVO(methodVO:MethodVO):void
Increases dependency counters for the named registers listed as required by the given MethodVO. | MethodDependencyCounter | ||
reset():void
Clears dependency counts for all registers. | MethodDependencyCounter | ||
setPositionedLights(numPointLights:uint, lightSourceMask:uint):void
Sets the amount of lights that have a position associated with them. | MethodDependencyCounter |
globalPosDependencies | property |
globalPosDependencies:uint
[read-only] The amount of dependencies on the global position. This can be 0 while hasGlobalPosDependencies is true when the global position is used as a temporary value (fe to calculate the view direction)
public function get globalPosDependencies():uint
normalDependencies | property |
normalDependencies:uint
[read-only] The amount of dependencies on the normal vector.
public function get normalDependencies():uint
projectionDependencies | property |
projectionDependencies:uint
[read-only] The amount of dependencies on the projected position.
public function get projectionDependencies():uint
secondaryUVDependencies | property |
secondaryUVDependencies:uint
[read-only] The amount of dependencies on the secondary UV coordinates.
public function get secondaryUVDependencies():uint
tangentDependencies | property |
tangentDependencies:uint
[read-only] The amount of tangent vector dependencies (fragment shader).
public function get tangentDependencies():uint
usesGlobalPosFragment | property |
usesGlobalPosFragment:Boolean
[read-only] Indicates whether there are any dependencies on the world-space position vector.
public function get usesGlobalPosFragment():Boolean
uvDependencies | property |
uvDependencies:uint
[read-only] The amount of dependencies on the primary UV coordinates.
public function get uvDependencies():uint
viewDirDependencies | property |
viewDirDependencies:uint
[read-only] The amount of dependencies on the view direction.
public function get viewDirDependencies():uint
MethodDependencyCounter | () | Constructor |
public function MethodDependencyCounter()
Creates a new MethodDependencyCounter object.
addWorldSpaceDependencies | () | method |
public function addWorldSpaceDependencies(fragmentLights:Boolean):void
Adds any external world space dependencies, used to force world space calculations.
Parameters
fragmentLights:Boolean |
includeMethodVO | () | method |
public function includeMethodVO(methodVO:MethodVO):void
Increases dependency counters for the named registers listed as required by the given MethodVO.
Parameters
methodVO:MethodVO — the MethodVO object for which to include dependencies.
|
reset | () | method |
public function reset():void
Clears dependency counts for all registers. Called when recompiling a pass.
setPositionedLights | () | method |
public function setPositionedLights(numPointLights:uint, lightSourceMask:uint):void
Sets the amount of lights that have a position associated with them.
Parameters
numPointLights:uint — The amount of point lights.
| |
lightSourceMask:uint — The light source types used by the material.
|