Implementing Discrete Level of detail for models based on the distance from camera.
Before submitting model to the renderer, it calculates distance from camera. Based on that computed distance, is switched to another actor of the modelCUnit based on the distance from camera.
Before submitting model to the renderer, it calculates distance from camera. Based on that computed distance, is switches to another actor.
We avoid switching too much by comparing the lods and only reloading the actor when necessary.
Current distance to switch models is hardcoded and kind of small for showcase (maybe it is enough, dont know actually).
ToDo:
* Decide whether* Avoid reloading the option is for v1 or v2 (Art work will not be done in this patch)whole actor / copying the Model entirely
* Improve animation transition
* Find a way to get the configuration settingsMake sure everything works (cast shadow doesn't seem to, float also probably can't differ)
* Make sure the prop LOD is handled, and that the # of entries is capped.
* Maybe using a logarithm for the distance algorithm
Another usage: Hyrule Conquest would like to have that.