When models are far away, a low poly version of tree should be displayed instead of original tree and I wrote a model class for it. The problem is that the class is not working well.
This tree should be rendered when trees are far away.
but this is what happening.
if trees are far away, the model itself gets vanished and nothing gets rendered, I dunno what actually is wrong.
Here is my code:
tree.h - http://pastebin.com/Wq18hf69
tree.cpp - http://pastebin.com/VC8XELh3
If you need model class code too, then please comment and I'll add it.