aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/TileRenderer.h
diff options
context:
space:
mode:
authordaoge <3523206925@qq.com>2026-03-03 03:04:10 +0800
committerGitHub <noreply@github.com>2026-03-03 03:04:10 +0800
commitb3feddfef372618c8a9d7a0abcaf18cfad866c18 (patch)
tree267761c3bb39241ba5c347bfbe2254d06686e287 /Minecraft.Client/TileRenderer.h
parent84c31a2331f7a0ec85b9d438992e244f60e5020f (diff)
feat: TU19 (Dec 2014) Features & Content (#155)
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
Diffstat (limited to 'Minecraft.Client/TileRenderer.h')
-rw-r--r--Minecraft.Client/TileRenderer.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/Minecraft.Client/TileRenderer.h b/Minecraft.Client/TileRenderer.h
index 4045ece2..817bbf48 100644
--- a/Minecraft.Client/TileRenderer.h
+++ b/Minecraft.Client/TileRenderer.h
@@ -13,6 +13,8 @@ class BrewingStandTile;
class CauldronTile;
class EggTile;
class TheEndPortalFrameTile;
+class RepeaterTile;
+class ComparatorTile;
class DiodeTile;
class FireTile;
class StemTile;
@@ -21,6 +23,8 @@ class CocoaTile;
class AnvilTile;
class FlowerPotTile;
class WallTile;
+class BeaconTile;
+class HopperTile;
class Icon;
class Minecraft;
@@ -101,6 +105,8 @@ private:
public:
bool tesselateTorchInWorld( Tile* tt, int x, int y, int z );
private:
+ bool tesselateRepeaterInWorld(RepeaterTile *tt, int x, int y, int z);
+ bool tesselateComparatorInWorld(ComparatorTile *tt, int x, int y, int z);
bool tesselateDiodeInWorld(DiodeTile *tt, int x, int y, int z);
void tesselateDiodeInWorld( DiodeTile* tt, int x, int y, int z, int dir );
static const int FLIP_NONE = 0, FLIP_CW = 1, FLIP_CCW = 2, FLIP_180 = 3;
@@ -131,6 +137,7 @@ private:
bool tesselateRailInWorld( RailTile* tt, int x, int y, int z );
bool tesselateLadderInWorld( Tile* tt, int x, int y, int z );
bool tesselateVineInWorld( Tile* tt, int x, int y, int z );
+ bool tesselateThinPaneInWorld(Tile *tt, int x, int y, int z);
bool tesselateThinFenceInWorld( ThinFenceTile* tt, int x, int y, int z );
bool tesselateCrossInWorld( Tile* tt, int x, int y, int z );
bool tesselateStemInWorld( Tile* _tt, int x, int y, int z );
@@ -157,40 +164,40 @@ private:
private:
bool applyAmbienceOcclusion;
- float ll000, llx00, ll0y0, ll00z, llX00, ll0Y0, ll00Z;
float llxyz, llxy0, llxyZ, ll0yz, ll0yZ, llXyz, llXy0;
float llXyZ, llxYz, llxY0, llxYZ, ll0Yz, llXYz, llXY0;
float ll0YZ, llXYZ, llx0z, llX0z, llx0Z, llX0Z;
+
// 4J - brought forward changes from 1.8.2
- int ccx00, cc00z, cc0Y0, cc00Z;
int ccxyz, ccxy0, ccxyZ, cc0yz, cc0yZ, ccXyz, ccXy0;
int ccXyZ, ccxYz, ccxY0, ccxYZ, cc0Yz, ccXYz, ccXY0;
int cc0YZ, ccXYZ, ccx0z, ccX0z, ccx0Z, ccX0Z;
- int blsmooth;
+
int tc1, tc2, tc3, tc4; // 4J - brought forward changes from 1.8.2
float c1r, c2r, c3r, c4r;
float c1g, c2g, c3g, c4g;
float c1b, c2b, c3b, c4b;
- bool llTrans0Yz, llTransXY0, llTransxY0, llTrans0YZ;
- bool llTransx0z, llTransX0Z, llTransx0Z, llTransX0z;
- bool llTrans0yz, llTransXy0, llTransxy0, llTrans0yZ;
public:
// 4J - brought forward changes from 1.8.2
// AP - added faceFlags so we can cull earlier
bool tesselateBlockInWorldWithAmbienceOcclusionTexLighting( Tile* tt, int pX, int pY, int pZ, float pBaseRed,
- float pBaseGreen, float pBaseBlue, int faceFlags );
- private:
+ float pBaseGreen, float pBaseBlue, int faceFlags, bool smoothShapeLighting );
+
+private:
int blend( int a, int b, int c, int def );
int blend(int a, int b, int c, int d, double fa, double fb, double fc, double fd);
- public:
+public:
bool tesselateBlockInWorld( Tile* tt, int x, int y, int z, float r, float g, float b );
+ bool tesselateBeaconInWorld( Tile *tt, int x, int y, int z);
bool tesselateCactusInWorld( Tile* tt, int x, int y, int z );
bool tesselateCactusInWorld( Tile* tt, int x, int y, int z, float r, float g, float b );
bool tesselateFenceInWorld( FenceTile* tt, int x, int y, int z );
bool tesselateWallInWorld(WallTile *tt, int x, int y, int z);
bool tesselateEggInWorld(EggTile *tt, int x, int y, int z);
bool tesselateFenceGateInWorld(FenceGateTile *tt, int x, int y, int z);
+ bool tesselateHopperInWorld(Tile *tt, int x, int y, int z);
+ bool tesselateHopperInWorld(Tile *tt, int x, int y, int z, int data, bool render);
bool tesselateStairsInWorld( StairTile* tt, int x, int y, int z );
bool tesselateDoorInWorld( Tile* tt, int x, int y, int z );
void renderFaceUp( Tile* tt, double x, double y, double z, Icon *tex );