Packagealternativa.engine3d.materials
Classpublic class SSAOAngular
InheritanceSSAOAngular Inheritance Object

Screen space ambient occlusion is an effect meant for shading each pixel of screen according to the surrounding object. The effect is calculated for each pixel taking into account geometry which was placed inside 'work volume' around the target pixel. The work volume has the shape of a cylinder which is perpendicular to the screen. The larger work volume – the larger fields shaded by the effect. The effect works within two passes with work volumes of different size. The size of second pass work volume is smaller since it meant for accenting small details.



Public Properties
 PropertyDefined By
  falloff : Number = 0
Height addition to the work volume height on which ssao effect decays to zero.
SSAOAngular
  intensity : Number = 1
Total SSAO intensity.
SSAOAngular
  maxDistance : Number = 10
Height of the work volume, on which the falloff starts.
SSAOAngular
  occludingRadius : Number = 1
Radius of the work volume base.
SSAOAngular
  secondPassAmount : Number = 0.1
Factor of intensity of the second pass.
SSAOAngular
  secondPassOccludingRadius : Number = 0.5
Radius of the second pass work volume base.
SSAOAngular
  useSecondPass : Boolean = true
If true, enables second pass for small details.
SSAOAngular
Public Methods
 MethodDefined By
  
SSAOAngular
  
SSAOAngular
Property Detail
falloffproperty
public var falloff:Number = 0

Height addition to the work volume height on which ssao effect decays to zero.

intensityproperty 
public var intensity:Number = 1

Total SSAO intensity.

maxDistanceproperty 
public var maxDistance:Number = 10

Height of the work volume, on which the falloff starts.

occludingRadiusproperty 
public var occludingRadius:Number = 1

Radius of the work volume base.

secondPassAmountproperty 
public var secondPassAmount:Number = 0.1

Factor of intensity of the second pass.

secondPassOccludingRadiusproperty 
public var secondPassOccludingRadius:Number = 0.5

Radius of the second pass work volume base.

useSecondPassproperty 
public var useSecondPass:Boolean = true

If true, enables second pass for small details.

Constructor Detail
SSAOAngular()Constructor
public function SSAOAngular()



Method Detail
collectQuadDraw()method
public function collectQuadDraw(camera:Camera3D):void

Parameters

camera:Camera3D