Closed ghost closed 1 year ago
You need to convert the index buffer to uint32 as Embree does not support ushort3 as index format.
ok,
std::transform( begin( el.indices ), end( el.indices ), indices, []( u16 val ){
u32 v = val;
return v;
} );
will do then. thanks!
Hi,
The doc says that the lib expects a 32 bit unsigned number for the geometry indices function, but glTF format has it as a 16-bit ushort.
So, could the following code be made valid?
otherwise that would mean that a -boring- first pass to convert elements is needed.
Thanks