API

Class ThinDepthOfFieldEffect

Thin depth of field effect composed of circle of confusion, blur, and merge post processes.

Index
  • Creates a new instance of

    Parameters

    • name: string

      The name of the depth of field render effect

    • engine: Nullable<AbstractEngine>

      The engine which the render effect will be applied. (default: current engine)

    • blurLevel: ThinDepthOfFieldEffectBlurLevel = ThinDepthOfFieldEffectBlurLevel.Low

      The quality of the effect. (default: DepthOfFieldEffectBlurLevel.Low)

    • depthNotNormalized: boolean = false

      If the (view) depth used in circle of confusion post-process is normalized (0.0 to 1.0 from near to far) or not (0 to camera max distance) (default: false)

    • blockCompilation: boolean = false

      If shaders should not be compiled when the effect is created (default: false)

    Returns ThinDepthOfFieldEffect

    ThinDepthOfFieldEffect

The quality of the effect.