Just as an update on this. It seems the native engine is failing to handle smooth shading for meshes with empty index buffers. We are currently working on a fix for it.
Yes, but this code does not check for currentIndices.length == 0. However, despite that, it is currently working fine on the web, so I’m trying to understand what the web engine is doing at render time that allows it to render properly.
That’s a good idea.
Just for your information, as shown in my screencast, it throws in cloneObject of React-Native’s JSI.
So, I thought it might be because of some Javascript code to clone objects in forceSharedVertices.
@babylon , the PR was merged into master. We were actually able to fix it on Babylon.js instead of Babylon Native, so it should be on the next week’s release of babylonjs/core package (5.17.0).
Let me know if you continue to have any issues after updating your project.
Hello @srzerbetto
I tried to updated this package but it was seems slower than before.
I was using 5.6.1 and updated to 5.17.1 but seems slower.
Can you please let me know how to do this on JS side?