invoke

operator fun invoke(options: IBLPrefilterContext.SpecularFilter.Options, environmentCubemap: Texture, outReflectionsTexture: Texture? = null): Texture

Generates a prefiltered cubemap. The environment cubemap must be SAMPLEABLE with all its levels allocated. If Options.generateMipmap is true, the mipmap levels are overwritten.

Return

returns outReflectionsTexture

Parameters

outReflectionsTexture

Output cubemap with at least COLOR_ATTACHMENT and SAMPLEABLE usages and the levels Config.levelCount asks for, or null to create one with default parameters.


operator fun invoke(environmentCubemap: Texture, outReflectionsTexture: Texture? = null): Texture

invoke with the default Options: all mipmap levels are overwritten.