Skip to main content

IfcTransparencySettings

Transparency settings for IFC objects.

Index

Constructors

constructor

Accessors

publicmode

  • Gets the currently active mode of transparency


    Returns TransparencyMode

  • Changes how transparency is handled for transparent IFC objects


    Parameters

    • transparencyMode: TransparencyMode

      The type of rendering that will be used for all transparent IFC objects, dithering means that pixels are rendered opaque but skipping every few pixels in a screen pattern depending on the opacity Seethrough is normal alpha blending

    Returns void

Methods

publicsetDitheringDepthDiscardMode

  • setDitheringDepthDiscardMode(ditherDiscardDepth: boolean): void
  • Set the currently used dither mode for solid objects that are dithered, and transparent objects if the transparency mode is dithering


    Parameters

    • ditherDiscardDepth: boolean

      Wheter or not to discard fragments in the depth shader that are dithered, this is needed for transparent objects to not write to the depth buffer

    Returns void

publicsetDitheringMode

  • setDitheringMode(ditherMode: DitheringTextureMode, animatedFrames: number): void
  • Set the currently used dither mode for solid objects that are dithered, and transparent objects if the transparency mode is dithering


    Parameters

    • ditherMode: DitheringTextureMode

      What dithering mode to use, bayer uses a bayer matrix to determine which pixels to render opaque, blue noise uses a blue noise texture

    • animatedFrames: number

      How many frames to use for the dithering animation when moving the camera, if 1 then no animation is used. Works best with Blue Noise

    Returns void