IBLPrefilter

class IBLPrefilter(engine: Engine)

IBLPrefilter creates and initializes GPU state common to all environment map filters. Typically, only one instance per filament Engine of this object needs to exist.

See also

IBLPrefilterContext

Constructors

Link copied to clipboard
constructor(engine: Engine)

Properties

Link copied to clipboard
val context: IBLPrefilterContext

Created IBLPrefilterContext, keeping it around if several cubemap will be processed.

Functions

Link copied to clipboard
fun destroy()
Link copied to clipboard
fun equirectangularToCubemap(equirect: Texture): Texture

Converts an equirectangular image to a cubemap.

Link copied to clipboard
fun specularFilter(skybox: Texture): Texture

Generates a prefiltered cubemap.