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, texture:BitmapData)
DofCache
  
getBitmap(depth:Number):BitmapData
DofCache
  
getDofCache(bitmap:BitmapData):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, texture:BitmapData)Parameters
levels:Number
 
texture:BitmapData
Init Parameters
Method detail
getBitmap()method
public function getBitmap(depth:Number):BitmapData Parameters
depth:Number

Returns
BitmapData
getDofCache()method 
public static function getDofCache(bitmap:BitmapData):DofCache Parameters
bitmap:BitmapData

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