mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-02 22:18:09 +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
@@ -22,6 +22,10 @@
|
||||
#include "../Minecraft.World/net.minecraft.world.level.h"
|
||||
#include "../Minecraft.World/net.minecraft.world.h"
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#include "DynamicLighting.h"
|
||||
#endif
|
||||
|
||||
ResourceLocation ItemInHandRenderer::ENCHANT_GLINT_LOCATION = ResourceLocation(TN__BLUR__MISC_GLINT);
|
||||
ResourceLocation ItemInHandRenderer::MAP_BACKGROUND_LOCATION = ResourceLocation(TN_MISC_MAPBG);
|
||||
ResourceLocation ItemInHandRenderer::UNDERWATER_LOCATION = ResourceLocation(TN_MISC_WATER);
|
||||
@@ -469,6 +473,9 @@ void ItemInHandRenderer::render(float a)
|
||||
{
|
||||
br = 1;
|
||||
int col = minecraft->level->getLightColor(Mth::floor(player->x), Mth::floor(player->y), Mth::floor(player->z), 0);
|
||||
#ifdef _WINDOWS64
|
||||
col = DynamicLighting::getLightmapWithDynamicLight(Mth::floor(player->x), Mth::floor(player->y), Mth::floor(player->z), col);
|
||||
#endif
|
||||
int u = col % 65536;
|
||||
int v = col / 65536;
|
||||
glMultiTexCoord2f(GL_TEXTURE1, u / 1.0f, v / 1.0f);
|
||||
|
||||
Reference in new issue
Block a user