EXRCubeTexture With No Polynomials

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

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

https://playground.babylonjs.com/#C1SETK#5

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

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

1 Like