# EXRCubeTexture With No Polynomials

**URL:** <https://forum.babylonjs.com/t/exrcubetexture-with-no-polynomials/61867>\
**Category:** Bugs\
**Created:** [December 20, 2025, 5:57pm UTC](https://forum.babylonjs.com/t/exrcubetexture-with-no-polynomials/61867 "2025-12-20T17:57:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [December 20, 2025, 5:57pm UTC](https://forum.babylonjs.com/t/exrcubetexture-with-no-polynomials/61867/1 "2025-12-20T17:57:15Z")

</div>

YO @Deltakosh or @sebavan . I think there might. be a bug in the EXRCubeTexture. When you pass **false** to the constructor for generateHarmonics, it generates them anyway. I need **initially** create my environmentTexture **without** spherical polynomials. I will suppply them later.

Please checkout playground, I am passing **false** for generateHarmonics but it is getting generated anyways:

[https://playground.babylonjs.com/#LKU9SS](https://playground.babylonjs.com/#LKU9SS)

The feature to **NOT** create spherical polynomials works great with CubeTexture or using CreateFromPrefilteredData with createPolynomials = false.

[https://playground.babylonjs.com/#C1SETK#5](https://playground.babylonjs.com/#C1SETK#5)

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [December 20, 2025, 10:40pm UTC](https://forum.babylonjs.com/t/exrcubetexture-with-no-polynomials/61867/2 "2025-12-20T22:40:43Z")

</div>

Yo @sebavan I think ther might a similar problem withthe EXRCubeTexture and createPolynomials. And you can override them after the fact either

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 22, 2025, 10:28am UTC](https://forum.babylonjs.com/t/exrcubetexture-with-no-polynomials/61867/3 "2025-12-22T10:28:15Z")

</div>

This PR will correct the calculation of spherical polynomials when they should not be:

> <https://github.com/BabylonJS/Babylon.js/pull/17584>
>
> See https://forum.babylonjs.com/t/exrcubetexture-with-no-polynomials/61867
> 
> Wh…en creating an EXR cube texture (but it's probably the same with \`HDRCubeTexture\`), the code that sets default spherical polynomials arrived too late in the loading process, and \`PBRBaseMaterial.isReadyForSubMesh\` had time to execute, which triggered the calculation of the polynomials. The fix ensures that the default polynomials are defined as soon as the internal texture is created.
