Broken rendering with masked materials on custom meshes
ArmorPaint version: e8b7d18c57c82d02c9b76d6618e8837473b08737
OS/device including version: Arch Linux, OpenGL backend, GTX1660Ti, nvidia driver version 535.86.05
Issue description: looks like rendering doesn't happen and GBuffer is taken from somewhere else
Steps to reproduce:
- Import mesh
- Add a few material layers
- Add a mask on one of the material
- Add another material layer (it could be any)
- Disable backface cull
Disabled and enabled Layer 8. It can be at any place in the stack.
Just checked it on tag 23.08, issue is still here. Also, if painting layer and masked material coexists anywhere in the stack, it behaves like that.
Found one workaround. It is pre-triangulate mesh before export from blender, that way there is no need to disable backface culling and everything seems to work fine. It works for me, but I'll keep this bug as it seems to be a rendering issue.
I believe this is related to #1272