Hi the following code gives a webGL error: INVALID_OPERATION: drawElement: no buffer is bound to enabled attribute
If you remove the diffuseTexture it works, and I tried calling material.dispose and diffuseTexture.dispose to no avail, I've reverted to 2.4 and this does not occur.
Thank you for the amazing work!
var material = new BABYLON.StandardMaterial('texture', scene);
material.diffuseTexture = Util.texture('assets/height.jpg', scene);
material.emissiveColor = new BABYLON.Color3(0.5, 0.5, 0.5);
var mesh = BABYLON.MeshBuilder.CreateIcoSphere('Ball', {
radius:64, subdivisions:4
}, scene);
mesh.position.x = 64;
mesh.position.z = 256;
mesh.position.y = 32;
mesh.material = material;
setTimeout(() => {
console.log(mesh);
console.log(scene.meshes.length);
setTimeout(() => {
mesh.visibility = false;
mesh.dispose();
console.log(scene.meshes.length);
}, 1000);
}, 2000);