1
0
Fork 0
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:
Lars Müller 2025-07-09 10:35:52 +02:00 committed by GitHub
parent 7e22c72492
commit 61551cfc3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
381 changed files with 680 additions and 1632 deletions

View file

@ -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);