mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Removed unused camera_position and camera_direction fields from Client. Moved ClientEnvironment::drawPostFx to ClientMap::renderPostFx -- this will make the camera management classes easier to write, as ClientMap already knows the camera position but ClientEnvironment doesn't and has to be told about it. This also eliminates the need for Client::getEnv(). Made the post effect color a content feature defined in content_mapnode.h.
This commit is contained in:
parent
d28ea57083
commit
c0b35fa429
9 changed files with 61 additions and 53 deletions
16
src/game.cpp
16
src/game.cpp
|
@ -2032,7 +2032,7 @@ void the_game(
|
|||
update_skybox(driver, smgr, skybox, brightness);
|
||||
|
||||
/*
|
||||
Update coulds
|
||||
Update clouds
|
||||
*/
|
||||
if(clouds)
|
||||
{
|
||||
|
@ -2313,6 +2313,13 @@ void the_game(
|
|||
driver->draw3DBox(*i, video::SColor(255,0,0,0));
|
||||
}
|
||||
|
||||
/*
|
||||
Post effects
|
||||
*/
|
||||
{
|
||||
client.renderPostFx();
|
||||
}
|
||||
|
||||
/*
|
||||
Frametime log
|
||||
*/
|
||||
|
@ -2352,13 +2359,6 @@ void the_game(
|
|||
// 0-1ms
|
||||
guienv->drawAll();
|
||||
|
||||
/*
|
||||
Environment post fx
|
||||
*/
|
||||
{
|
||||
client.getEnv()->drawPostFx(driver, camera_position);
|
||||
}
|
||||
|
||||
/*
|
||||
Draw hotbar
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue