Packageaway3d.core.utils
Classpublic class DofCache

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 Parameters
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
Wiki link
Click to go to the wiki page for 'away3d.core.utils.DofCache'

Code examples

Comments