Biome colour and grass side tint options (#98)

* Added biome colour and grass side tint options

* Moved GrassColor and FoliageColor to client/renderer/

* * Fix some build issues.

* * Add the new files to the CMakeLists.txt

---------

Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
This commit is contained in:
jonkadelic
2023-11-05 16:19:41 +00:00
committed by GitHub
parent 94d77ce887
commit e6ab1214af
27 changed files with 388 additions and 32 deletions

View File

@@ -9,7 +9,9 @@
#include "LevelRenderer.hpp"
#include "client/app/Minecraft.hpp"
#include "renderer/GL/GL.hpp"
#include "world/tile/LeafTile.hpp"
#include "world/tile/GrassTile.hpp"
LevelRenderer::LevelRenderer(Minecraft* pMC, Textures* pTexs)
{
@@ -136,6 +138,9 @@ void LevelRenderer::allChanged()
pLeaves->m_bTransparent = m_pMinecraft->getOptions()->m_bFancyGraphics;
pLeaves->m_TextureFrame = !pLeaves->m_bTransparent + pLeaves->field_74;
TileRenderer::m_bFancyGrass = m_pMinecraft->getOptions()->m_bFancyGrass;
TileRenderer::m_bBiomeColors = m_pMinecraft->getOptions()->m_bBiomeColors;
field_BC = m_pMinecraft->getOptions()->m_iViewDistance;
int x1 = 64 << (3 - field_BC);