Packageaway3d.core.utils
Classpublic class DofCache
InheritanceDofCache Inheritance Object

Provides static pre-blurred bitmap images for depth of field-effect when used together with billboarded sprites, such as Billboards.



Public Properties
 PropertyDefined By
  aperture : Number = 22
[static]
DofCache
  doflevels : Number = 16
[static]
DofCache
  focus : Number
[static]
DofCache
  maxblur : Number = 150
[static]
DofCache
  usedof : Boolean = false
[static]
DofCache
Public Methods
 MethodDefined By
  
DofCache(levels:Number, material:BitmapMaterial)
DofCache
  
DofCache
  
[static]
DofCache
  
resetDof(enabled:Boolean):void
[static]
DofCache
Property Detail
apertureproperty
public static var aperture:Number = 22

doflevelsproperty 
public static var doflevels:Number = 16

focusproperty 
public static var focus:Number

maxblurproperty 
public static var maxblur:Number = 150

usedofproperty 
public static var usedof:Boolean = false

Constructor Detail
DofCache()Constructor
public function DofCache(levels:Number, material:BitmapMaterial)



Parameters
levels:Number
 
material:BitmapMaterial
####INIT####
Method Detail
getBitmapMaterial()method
public function getBitmapMaterial(depth:Number):BitmapMaterial

Parameters

depth:Number

Returns
BitmapMaterial
getDofCache()method 
public static function getDofCache(material:BitmapMaterial):DofCache

Parameters

material:BitmapMaterial

Returns
DofCache
resetDof()method 
public static function resetDof(enabled:Boolean):void

Parameters

enabled:Boolean