Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com>
Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
This commit is contained in:
committed 2026-11-11 18:46:44 +00:00
1 parent 880566324a
commit b75adc25aa
668 files changed
+19082 -5289

No files matched your search

+13 -2
View File
@@ -13,6 +13,9 @@
#include "../Minecraft.World/StringHelpers.h"
#include "../Minecraft.World/net.minecraft.world.level.dimension.h"
#include "../Minecraft.World/InputOutputStream.h"
#ifdef _WINDOWS64
#include "DynamicLighting.h"
#endif
ResourceLocation ParticleEngine::PARTICLES_LOCATION = ResourceLocation(TN_PARTICLES);
@@ -155,7 +158,11 @@ void ParticleEngine::render(shared_ptr<Entity> player, float a, int list)
if (SharedConstants::TEXTURE_LIGHTING) // 4J - change brought forward from 1.8.2
{
t->tex2(p->getLightColor(a));
int lightColor = p->getLightColor(a);
#ifdef _WINDOWS64
lightColor = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(p->xOld + (p->x - p->xOld) * a), Mth::floor(p->yOld + (p->y - p->yOld) * a), Mth::floor(p->zOld + (p->z - p->zOld) * a), lightColor);
#endif
t->tex2(lightColor);
}
p->render(t, a, xa, ya, za, xa2, za2);
}
@@ -197,7 +204,11 @@ void ParticleEngine::renderLit(shared_ptr<Entity> player, float a, int list)
if (SharedConstants::TEXTURE_LIGHTING) // 4J - change brought forward from 1.8.2
{
t->tex2(p->getLightColor(a));
int lightColor = p->getLightColor(a);
#ifdef _WINDOWS64
lightColor = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(p->xOld + (p->x - p->xOld) * a), Mth::floor(p->yOld + (p->y - p->yOld) * a), Mth::floor(p->zOld + (p->z - p->zOld) * a), lightColor);
#endif
t->tex2(lightColor);
}
p->render(t, a, xa, ya, za, xa2, za2);
}