Hello, I have a weird issue since I have updated my BJS version to one of the last (5.0.0-beta.4 => 5.32.2). Unfortunately, I can’t reproduce it in a playground as the issue happen only after building the code.
The error I have is with the CubeTexture class and here are the results I have before and after building the code for production:
You can see that we have an error, particularly on the metallic parts.
In the console I have this error warning which also appeared only with the production code:
[.WebGL-0x12003d98700] GL_INVALID_FRAMEBUFFER_OPERATION: Draw framebuffer is incomplete
If I remove the CubeTexture of the scene, the warning stops showing that is why I am pretty sure the error comes from there. Plus the visual error we see in the images above also matches with a CubeTexture issue.
I tried to play with a lot of typescript parameters but none worked. I removed all the options like scope hoisting and other optimizations from our compilator parcel but also no change at all.
I tried different versions of parcel but still the same result. I tried some different versions of BJS also but unless I go back to 5.0.0-beta.4, I will have the issue. I can’t tell you exactly with which version it stops working as I wanted to ask you before testing every version
I also tried to see if it could come from missing import of BJS feature but no clue so far. Plus normally it wouldn’t work even before the build.
Thanks for your help in figuring out what is happening!