From 5668dcc8526bf8b4510529d10da1728b2f86112d Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 3 Oct 2024 20:29:24 -0400 Subject: [PATCH] Render Entity Shadows --- docs/CHANGELOG.md | 1 + images/CMakeLists.txt | 6 + images/shadow.png | Bin 0 -> 868 bytes launcher/src/client/available-feature-flags | 3 +- mods/src/f3/f3.cpp | 1 + mods/src/misc/graphics.cpp | 251 +++++++++++++----- symbols/src/entity/Entity.def | 7 +- symbols/src/entity/EntityRenderDispatcher.def | 5 +- symbols/src/entity/EntityRenderer.def | 3 + symbols/src/level/LevelSource.def | 2 +- 10 files changed, 211 insertions(+), 68 deletions(-) create mode 100644 images/shadow.png diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index be9fdbfa8e..c4b19fd25f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -47,6 +47,7 @@ * `Fix Crash When Generating Certain Seeds` (Enabled By Default) * `Click Buttons On Mouse Down` (Enabled By Default) * `3D Dropped Items` (Enabled By Default) + * `Render Entity Shadows` (Enabled By Default) * Existing Functionality (All Enabled By Default) * `Fix Screen Rendering When Hiding HUD` * `Sanitize Usernames` diff --git a/images/CMakeLists.txt b/images/CMakeLists.txt index 913aabdc56..d0fc577e8c 100644 --- a/images/CMakeLists.txt +++ b/images/CMakeLists.txt @@ -19,6 +19,12 @@ install( DESTINATION "${MCPI_INSTALL_DIR}/data/images/item" ) +# Entity Shadow +install( + FILES "shadow.png" + DESTINATION "${MCPI_INSTALL_DIR}/data/images/misc" +) + # Icon set(ICON_DIR "${MCPI_SHARE_DIR}/icons/hicolor/512x512/apps") install( diff --git a/images/shadow.png b/images/shadow.png new file mode 100644 index 0000000000000000000000000000000000000000..06d999b20896dcc2ee077cb94f6afa3c8162895a GIT binary patch literal 868 zcmV-q1DpJbP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qu=Q#NQ00PuWL_t(|UhSK&SHmz6$0w1K$Vp@+vJyFo ztVB*C=a5L`{)9>7Boc|7L?V%JAJM(FOP4fhvs}7+FJiCxb>I8m<#O$2v#Uf$U?D4( z9qlgqZbn`ZWh-eLX`j;m9NU-l+e%wWD@NYq;M31##;2YN+kn~2e9zJVG+AMDSlXsc z=yRBn6f15cDc%NdC+l83W(_$1^Dp0-#c0Du#8Z6&t)nFjt^QqIm%cZJNCUC~581P(U z2!^{40fA)0b+J_Ykw$ZD_m))#%GXAD>#IG~*Xs9OOzhyO7-HT*rW62cqc!S>tH zpuqs%@MsQbK6}5qz;O&9HS|GI^Oyz$C>Lo~#%J%i{Xymv1mL7b$TiUiNv&frdP8;- z0$|@(p5Fuot=80DoJt&^_-hm@C4K3ntv{dkbV@M+0F3lMMuc*a zHmkbsm#UZbi?U_L062d?lp_mx+ua%b+Cd@5BXM;u_?e!OEV%ks>ivvma2p_V=|IYu zx^lMtL4EJ9NON$7#67+~+gNp_b zKE_hMMl