mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 03:06:29 +01:00
dyn lighting, post processing effect
This commit is contained in:
1 parent
c95b489d76
commit
6b10bced54
26 files changed
+646
-64
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