mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Dynamic sky, fog and cloud colors; sun and moon
This commit is contained in:
parent
58bed83d03
commit
2e90ed07ac
30 changed files with 1132 additions and 244 deletions
|
@ -375,8 +375,12 @@ void Camera::updateViewingRange(f32 frametime_in)
|
|||
m_draw_control.wanted_range = viewing_range_max;
|
||||
|
||||
// Just so big a value that everything rendered is visible
|
||||
// Some more allowance than viewing_range_max * BS because of active objects etc.
|
||||
m_cameranode->setFarValue(viewing_range_max * BS * 10);
|
||||
// Some more allowance than viewing_range_max * BS because of clouds,
|
||||
// active objects, etc.
|
||||
if(viewing_range_max < 200*BS)
|
||||
m_cameranode->setFarValue(200 * BS * 10);
|
||||
else
|
||||
m_cameranode->setFarValue(viewing_range_max * BS * 10);
|
||||
|
||||
f32 wanted_fps = g_settings->getFloat("wanted_fps");
|
||||
wanted_fps = MYMAX(wanted_fps, 1.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue