IBLPrefilterContext

Creates and initializes GPU state common to all environment map filters supported.

Typically, only one instance per Engine needs to exist.

Usage example:

val context = IBLPrefilterContext(engine)
val filter = IBLPrefilterContext.SpecularFilter(context)
val texture = filter(environmentCubemap)
val indirectLight = IndirectLight.Builder()
.reflections(texture)
.build(engine)

Constructors

Link copied to clipboard
constructor(engine: Engine)

Types

Link copied to clipboard

Converts an equirectangular image to a cubemap.

Link copied to clipboard

Generates an irradiance cubemap. An instance is needed per filter configuration.

Link copied to clipboard

The filter kernel.

Link copied to clipboard

Generates a prefiltered (specular) cubemap. An instance is needed per filter configuration.

Properties

Link copied to clipboard

The native object, for interop with code calling the Fila* C API directly. Read-only: this wrapper owns it.

Functions

Link copied to clipboard
open override fun close()

Same as destroy; lets this be used with use { } and try-with-resources.

Link copied to clipboard
fun destroy()

Destroys all GPU resources created during initialization.