@twinfinity/core
    Preparing search index...

    Class PostProcessEffects

    Contains static methods that return new instances of post-process effects.

    Index

    Constructors

    Methods

    • Creates a new instance of the Dither Blur post-process effect. This is used to blur pixels masked as being dithered (which is only opaque objects with alpha < 1.0)

      Parameters

      • kernel: number = 16.0

        The size of the kernel to be used when computing the blur. Defaults to 16 if no value is provided. It does not correspond exactly to the number of fragments sampled but still raising this number will decrease performance

      Returns DitherBlurPipeline

      The newly created instance.

    • Creates a new instance of the LineShading post-process effect

      Parameters

      • lineThickness: number = 0.3

        Thickness of the lines, a value between 0 and 1.

      • normalsSensitive: boolean = true

        Does nothing, it's only use is to not break existing code

      Returns LineShading

      The newly created instance.

    • Returns a postprocess that outlines all IFC meshes that are marked as outlined

      Parameters

      • unifiedOutline: boolean

        Wheter or not to have all outlined meshes have a unified outline

      • outlineColor: Vector3 = ...

        The color of the outline

      Returns OutlinePipeline

    • Creates a new instance of the SSAO pipeline post-process effect

      Parameters

      • OptionalsamplesCount: number

        Number of SSAO samples per frame, higher gives better SSAO quality but reduces performance and the other way around, default is 46, has to be whole numbers

      • Optionalstrength: number

        Strength of SSAO, higher value means larger impact of SSAO, default is 1.0

      • OptionalblurSize: number

        How many pixels of the SSAO result that is blurred, has to be a whole number, default is 16

      • Optionalradius: number

        How spaced out the SSAO samples are, default is 0.08

      • OptionalrenderScale: number

        The resolution at which the SSAO is calculated, reducing this below 1.0 means that the SSAO calculations are made at a lower scale and then scaled back again to fit the current render frame. This means that it will use less GPU resources, but also that it will look blurry. Default is 1.0, recommended values are 1.0, 0.5 and 0.25

      Returns SSAOPipeline

      The newly created instance of the ssao pipeline