mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-22 10:09:08 +01:00
Tu46 (#4205)
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:
1 parent
880566324a
commit
b75adc25aa
668 files changed
+19082
-5289
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user