I am using multimesh to render a lot of grass and everything is working well. The performance is acceptable but I want to have some kind of lod system where when you are far from the grass the visible instances of the multi mesh are lowered.
There are two ways to do that. One is set MultiMesh instance count to a lower number and the other is to set MultiMesh visible instance count to a lower number.
I want to use the latter as it does not force update of the buffer. The problem is if I just set MultiMesh visible instance count to a number, the MultiMesh does not update.
I don't want to update instance count because it will update the buffer. The reason for that is I am setting the grass strands positions to random locations and I don't want their locations to be updated when I hide some instances. I just want to hide some strands without rebuilding the MultiMesh.
Any help will be appreciated.