Error in BRDFTextureTools.GetEnvironmentBRDFTexture

Hi everyone,

in the function BRDFTextureTools.GetEnvironmentBRDFTexture when

  • the scene does not contain an environmentBRDFTexture (so the default base64 is used)
  • the scene.useDelayedTextureLoading is true

we have texture._texture = null

and the assignment

texture._texture._isRGBD = true;

goes in error.

Hello and welcome!
Pinging our BRDF master: @sebavan

Thanks for reporting the fix is in, it should be available in the next preview.