@BabylonNative @Cedric @bghgary
I’m not entirely sure this is a bug, but it’s certainly a difference between Babylon.js and Babylon Native.
I was trying to get @roland’s cool new greased line code working in Babylon React Native, but it kept crashing with the following error (in Android):
After much trial and error investigation using one of the simplest of Roland’s tests (pbrDemo()
), I was able to determine that attribute float side
was the cause of the crash. This side
vertex buffer is defined and populated in GreasedLine.ts
:
It works after changing from a float
to a vec2
throughout like so:
Sorry for the mess of screenshots above, but hopefully it conveys the issue.
Is this a known limitation of BGFX or a bug?