This commit is contained in:
GabsPuNs
2026-06-06 18:42:29 -04:00
parent a567ed3942
commit b77caa0da9
12 changed files with 19 additions and 14 deletions

View File

@@ -876,13 +876,15 @@ void GameRenderer::updateLightTexture(float a)
const __m256 v255 = _mm256_set1_ps(255.0f);
#endif
// 4J-JEV: Now doing light textures on PER PLAYER basis.
// 4J - we *had* added separate light textures for all dimensions, and this loop to update them all here
for (int j = 0; j < XUSER_MAX_COUNT; j++)
{
shared_ptr<MultiplayerLocalPlayer> player = Minecraft::GetInstance()->localplayers[j];
if (player == nullptr)
continue;
Level *level = player->level;
Level *level = player->level; // 4J - was mc->level when it was just to update the one light texture
const float skyDarken1 = level->getSkyDarken(1.0f);
const float skyWeight = skyDarken1 * 0.65f + 0.35f;