Class: AlphaDepthOfField

AlphaDepthOfField

new AlphaDepthOfField(strengthopt, trueDistanceopt)

Depth of field is an effect by which objects appear blurrier the further they are from the focus of a camera. The AlphaDepthOfField class can mimic this effect in DepthJS but with alpha instead of blur. To do so set the Stage3D's alphDepthOfField property to an AlphaDepthOfField instance.
Parameters:
Name Type Attributes Default Description
strength Number <optional>
100 Shortcut to the strength property.
trueDistance Boolean <optional>
true Shortcut to the trueDistance property.
Source:

Members

strength :Number

Sets the strength of the effect.
Type:
  • Number
Default Value:
  • 100
Source:

trueDistance :Boolean

Sets whether the effect utilizes true distance from 0,0,0 (true) or simply the object's z location (false) for the effect.
Type:
  • Boolean
Default Value:
  • true
Source: