2025-09-05 05:43 CEST

spring: develop aca1f71e Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
hoijui hoijui develop 2009-08-23 18:38:19 develop 9e83a6dc
Changeset icon distance: use distance to camera for steep angles
When looking at the map from a steep angle (like Overhead camera),
use the distance of the camera to the average ground level of the map,
to determine whether to draw icons or not.
For flat angles, it works as know, with distance to the individual units.
Each CameraController can define individually the method it wants to be used,
by overriding the following method, which has a default implementation as described above.
bool GetUseDistToGroundForIcons()
mod - rts/Game/Camera/CameraController.cpp Diff ] File ]
mod - rts/Game/Camera/CameraController.h Diff ] File ]
mod - rts/Rendering/UnitModels/UnitDrawer.cpp Diff ] File ]
mod - rts/Rendering/UnitModels/UnitDrawer.h Diff ] File ]