We are developing a selection system to highlight individual meshes with custom colors. To handle instances, using instanced buffers, but encountering an issue where instances with negative scaling behave unexpectedly.
When not all the instances share the same determinant (so scale sign is different), Babylon HAS to split them into multiple draw calls as they do not share their winding order anymore.
What should I see in your first PG? what is wrong?
okay, I understand Babylon has to render in diffrent draw calls in case not share same determinant.
Is there any way to still highlight it ? Like in first PG, if I applyed -ve scale, instead of rendering red its rendered black. Is there way to render mirrored instance with red color ?
Same with PG-2, highlight green color not applied when scaling.x = -1.