mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Remove irr
namespace (#16309)
This commit is contained in:
parent
7e22c72492
commit
61551cfc3a
381 changed files with 680 additions and 1632 deletions
|
@ -20,7 +20,7 @@
|
|||
#include "settings.h"
|
||||
#include "camera.h" // CameraModes
|
||||
|
||||
using namespace irr::core;
|
||||
using namespace core;
|
||||
|
||||
static video::SMaterial baseMaterial()
|
||||
{
|
||||
|
@ -140,7 +140,7 @@ void Sky::render()
|
|||
video::SColor mooncolor2 = mooncolor2_f.toSColor();
|
||||
|
||||
// Calculate offset normalized to the X dimension of a 512x1 px tonemap
|
||||
float offset = (1.0 - fabs(sin((m_time_of_day - 0.5) * irr::core::PI))) * 511;
|
||||
float offset = (1.0 - fabs(sin((m_time_of_day - 0.5) * core::PI))) * 511;
|
||||
|
||||
if (m_sun_tonemap) {
|
||||
auto texel_color = m_sun_tonemap->getPixel(offset, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue