Hello there
I’m testing some simple stuff with BabylonJS (within a React app), and right now I’m playing around with custom models and shadows. However, I’m facing an issue that when the scene is loaded, it actually displays a totally dark scene.
However, when developing, if I change the file, the hot reload triggers and, in this case, the scene loads correctly. The script is actually very simple, so I’m not really sure what I’m doing wrong.
Recording
Files
- Script on Github (model is in public/SimpleCone…)
- Online demo (not Playground)
As you can see, nothing really special, small script, the model is just a plane with a texture.
I suppose it’s not React, as the other scripts/models do not have this issue. If someone can unblock me I would be grateful
Thanks in advance !