mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Create a separate scene manager for the wielded tool. This fixes the glitchyness in large map coordinates and some depth buffer problems. (The tool doesn't bob anymore when walking, this will be fixed later.) Fix MSVC build (thanks to dannydark).
This commit is contained in:
parent
6599002149
commit
36af9bb027
3 changed files with 49 additions and 13 deletions
|
@ -2161,6 +2161,14 @@ void the_game(
|
|||
driver->draw3DBox(*i, video::SColor(255,0,0,0));
|
||||
}
|
||||
|
||||
/*
|
||||
Wielded tool
|
||||
*/
|
||||
{
|
||||
// Warning: This clears the Z buffer.
|
||||
camera.drawWieldedTool();
|
||||
}
|
||||
|
||||
/*
|
||||
Post effects
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue