- Home /
Different Clipping Distances for Objects and Terrain?
I was wondering, how would be the best way to go about setting separate clipping distances for terrains and other entities.
For example, as I move away, I'd like these powerlines and structures to unrender to save on performance. However, I'd like the terrain in the distance to remain, so the player can see where they are going.
Would the best way to do this be with two separate cameras overlayed on different layers? I think that might work, but I feel like it may have some unforeseen consequences with it.
Since you are still rendering everything only once the 2 camera solution shouldn't have any performence issues, so I would go with it.
Answer by DripSta · Jul 26, 2020 at 05:24 AM
I'm Not sure how to do that with entities but without entities, I would have suggested that you use occlusion culling to not render some gameobjects in order to save performance but I'm not sure if the concept works the same with entities I haven't tried it before Although it should work. Try it out