docsby gkjohnson
Lighting a scene with a blurred environment map
Data courtesy of Poly Haven
On this page

Methods

new BlurredEnvMapGenerator( renderer: WebGPURenderer )
dispose(): void
async generate(
	// Equirectangular environment map to blur.
	texture: Texture,

	// Blur amount, from 0 to 1.
	blur: number = 0,

	// Output width. Defaults to the source width.
	width: number = null,

	// Output height. Defaults to the source height.
	height: number = null
): Promise<Texture>