You can check the “network” tab of the browser to know if your files are used or not. You will see they are not, because the canvas is named renderCanvas
, not renderingCanvas
.
You should also call initAsync()
before returning:
This PG still does not work for some reasons. I can see in the Network tab that the request for twgsl.js returns a 0 byte content response (but the response header says that the content length is 20323)… You should try to host the files somewhere else and see if that works.
Anyway, if I run the PG locally with my local version of Babylon.js and I point the js/wasm to local versions of the files, it does work. And it does fix the Tint error.