I wrote a voxel mesher which you can see working here:
but when I use it in my local project I get a bunch of WebGL errors:
babylon.js:1 WebGL: INVALID_OPERATION: uniformMatrix4fv: location is not from current program
WebGL: INVALID_OPERATION: uniform3f: location not for current program
And the model seems to be missing its normals and colored vertices.
A difference I can think of is that my project is using webpack and is placing babylonjs in the vendor.js bundle outside of the main gamelogic and site code.
These errors only happened when using the custom mesh object. Has anyone seen anything like this? Do I need to not split the codebase? Are there guidelines about how to use babylonjs with webpack and code splitting?