Options
All
  • Public
  • Public/Protected
  • All
Menu

Filters HDR maps to get correct renderings of PBR reflections

Hierarchy

  • HDRFiltering

Index

Constructors

Properties

Methods

Constructors

Properties

hdrScale: number

Scales pixel intensity for the input HDR map.

quality: number

Quality switch for prefiltering. Should be set to Constants.TEXTURE_FILTERING_QUALITY_OFFLINE unless you care about baking speed.

Methods

  • Get a value indicating if the filter is ready to be used

    Parameters

    Returns boolean

    true if the filter is ready

  • Prefilters a cube texture to have mipmap levels representing roughness values. Prefiltering will be invoked at the end of next rendering pass. This has to be done once the map is loaded, and has not been prefiltered by a third party software. See http://blog.selfshadow.com/publications/s2013-shading-course/karis/s2013_pbs_epic_notes_v2.pdf for more information

    Parameters

    • texture: BaseTexture

      Texture to filter

    • Optional onFinished: Nullable<() => void>

      Callback when filtering is done

    Returns Promise<void>

    Promise called when prefiltering is done

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme