Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HDRFiltering

Filters HDR maps to get correct renderings of PBR reflections

Hierarchy

  • HDRFiltering

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

hdrScaleSearch playground for hdrScale

hdrScale: number

Scales pixel intensity for the input HDR map.

qualitySearch playground for quality

quality: number

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

Methods

isReadySearch playground for isReady

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

    Parameters

    Returns boolean

    true if the filter is ready

prefilterSearch playground for prefilter

  • 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 property
  • Inherited method
  • Static property
  • Static method