UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

18 lines (17 loc) 767 B
import type { Nullable } from "../../types.js"; import type { SphericalPolynomial } from "../../Maths/sphericalPolynomial.js"; declare module "./baseTexture.js" { interface BaseTexture { /** * Get the polynomial representation of the texture data. * This is mainly use as a fast way to recover IBL Diffuse irradiance data. * @see https://learnopengl.com/PBR/IBL/Diffuse-irradiance */ sphericalPolynomial: Nullable<SphericalPolynomial>; /** * Force recomputation of spherical polynomials. * Can be useful if you generate a cubemap multiple times (from a probe for eg) and you need the proper polynomials each time */ forceSphericalPolynomialsRecompute(): void; } }