baseTexture.polynomial.d.ts 758 B

1234567891011121314151617
  1. import type { Nullable } from "../../types";
  2. import type { SphericalPolynomial } from "../../Maths/sphericalPolynomial";
  3. declare module "./baseTexture" {
  4. interface BaseTexture {
  5. /**
  6. * Get the polynomial representation of the texture data.
  7. * This is mainly use as a fast way to recover IBL Diffuse irradiance data.
  8. * @see https://learnopengl.com/PBR/IBL/Diffuse-irradiance
  9. */
  10. sphericalPolynomial: Nullable<SphericalPolynomial>;
  11. /**
  12. * Force recomputation of spherical polynomials.
  13. * Can be useful if you generate a cubemap multiple times (from a probe for eg) and you need the proper polynomials each time
  14. */
  15. forceSphericalPolynomialsRecompute(): void;
  16. }
  17. }