Hello!
I have an ofMesh
and I’m displacing the vertex positions with a vertex shader. The problem is, z-fighting occurs.
If I call ofEnableDepthTest()
, the mesh doesn’t render at all.
This problem doesn’t occur if I load the vertex positions on the CPU with mesh.getVertices()
and update them there, but this takes a performance hit. Does anyone know why?
My end goal is to have the mesh vertices be displaced by a height map.
Thanks!