I’m attempting to create an origami simulator. However, when faces are completely folded, I experience z-fighting issues. I tried a few different solutions but nothing seems to work well.
**Solution 1) **I tried making both sides of the mesh the same color. I’m using UProceduralMesh Component to create the mesh and applied a two-sided material, but the other side isn’t being colored.
**Solution 2) **Is there a way to perhaps increase precision of the z-buffer?
Solution 3) Use the painter’s algorithm instead of z-buffering, but I don’t think I can do that in UE4???
If anybody else has any other possible solutions I’d really appreciate any suggestions. Thank you!