Class HDRFiltering
Hierarchy
- HDRFiltering
Index
Constructors
constructor
-
Instantiates HDR filter for reflection maps
Parameters
-
engine: ThinEngine
Thin engine
-
Optional options: IHDRFilteringOptions
Options
Returns HDRFiltering
-
Properties
hdr ScaleSearch playground for hdrScale
Scales pixel intensity for the input HDR map.
qualitySearch playground for quality
Quality switch for prefiltering. Should be set to Constants.TEXTURE_FILTERING_QUALITY_OFFLINE
unless
you care about baking speed.
Methods
is ReadySearch playground for isReady
-
Get a value indicating if the filter is ready to be used
Parameters
-
texture: BaseTexture
Texture to filter
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
-
Filters HDR maps to get correct renderings of PBR reflections