Good constants
This commit is contained in:
parent
4afb9d6f4f
commit
2b6af91992
@ -6,27 +6,27 @@
|
||||
|
||||
namespace ZL {
|
||||
|
||||
static constexpr float PLANET_RADIUS = 1000000.f;
|
||||
static Vector3f PLANET_CENTER_OFFSET = Vector3f{ 0.f, 0.f, -2250000.f };
|
||||
static constexpr float PLANET_RADIUS = 100000.f;
|
||||
static Vector3f PLANET_CENTER_OFFSET = Vector3f{ 0.f, 0.f, -225000.f };
|
||||
|
||||
// --- 1. Дальний диапазон (FAR) ---
|
||||
static constexpr float FAR_Z_NEAR = 50000.0f;
|
||||
static constexpr float FAR_Z_FAR = 10000000.0f;
|
||||
static constexpr float FAR_Z_NEAR = 5000.0f;
|
||||
static constexpr float FAR_Z_FAR = 1000000.0f;
|
||||
|
||||
// Дистанция, где НАЧИНАЕТСЯ переход FAR -> MIDDLE
|
||||
static constexpr float TRANSITION_FAR_START = 400000.0f;
|
||||
static constexpr float TRANSITION_FAR_START = 40000.0f;
|
||||
|
||||
// --- 2. Средний диапазон (MIDDLE) ---
|
||||
static constexpr float MIDDLE_Z_NEAR = 500.f;
|
||||
static constexpr float MIDDLE_Z_FAR = 50000.f;
|
||||
static constexpr float MIDDLE_Z_NEAR = 1000.f;
|
||||
static constexpr float MIDDLE_Z_FAR = 200000.f;
|
||||
|
||||
// Дистанция, где ЗАВЕРШАЕТСЯ переход FAR -> MIDDLE и НАЧИНАЕТСЯ MIDDLE -> NEAR
|
||||
static constexpr float TRANSITION_MIDDLE_START = 10000.f;
|
||||
|
||||
// --- 3. Ближний диапазон (NEAR) ---
|
||||
// Новые константы для максимальной точности
|
||||
static constexpr float NEAR_Z_NEAR = 50.0f;
|
||||
static constexpr float NEAR_Z_FAR = 50000.0f;
|
||||
static constexpr float NEAR_Z_NEAR = 200.0f;
|
||||
static constexpr float NEAR_Z_FAR = 4000.0f;
|
||||
|
||||
// Дистанция, где ЗАВЕРШАЕТСЯ переход MIDDLE -> NEAR
|
||||
static constexpr float TRANSITION_NEAR_END = 10.f;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user