mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Avoid cloud jump when switching between mainmenu and loading screen (#15163)
... by using the same Clouds object for both. The mainmenu clouds already used shaders before. I had to choose between both or neither, so now both the mainmenu clouds and the loading screen clouds use shaders if available.
This commit is contained in:
parent
4aec4fbe6f
commit
47f199e6cb
5 changed files with 12 additions and 52 deletions
|
@ -36,11 +36,11 @@ namespace irr::scene
|
|||
}
|
||||
|
||||
// Menu clouds
|
||||
// The mainmenu and the loading screen use the same Clouds object so that the
|
||||
// clouds don't jump when switching between the two.
|
||||
class Clouds;
|
||||
extern Clouds *g_menuclouds;
|
||||
|
||||
// Scene manager used for menu clouds
|
||||
extern scene::ISceneManager *g_menucloudsmgr;
|
||||
extern Clouds *g_menuclouds;
|
||||
|
||||
class Clouds : public scene::ISceneNode
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue