Skip to content

Documentation / scene / prefilterCubemap

Function: prefilterCubemap() ​

prefilterCubemap(tex, type, destTexture, numSamples?, radianceSource?): void

Defined in: libs/scene/src/utility/pmrem.ts:372

Prefilters an environment cubemap

Parameters ​

tex ​

TextureCube

The environment cubemap

type ​

DistributionType

The prefilter type

destTexture ​

TextureCube<unknown> | FrameBuffer<unknown>

numSamples? ​

number

radianceSource? ​

boolean

Returns ​

void

Released under the MIT License.