The distance to which an entity's shadow begins to fade out is not affected by an entity's scale, leading to shadows appearing to fade out quicker than they should, due to how the player appears to (and technically is based off hitboxes) be closer to the entity.
Steps to Reproduce:
- Summon a pig with no ai
/summon pig ~ ~ ~ {NoAI:1b}
- Walk away from it, until you notice the shadow disappear
(Denote your position, with a marker block beneath you, or any other way) - Scale the pig's size
/attribute @e[type=pig,limit=1,sort=nearest] minecraft:generic.scale base set 15
- Repeat step 2
Observed & Expected Results:
- The shadow will fade out at the same rate, despite visually being 'closer' to the entity.
- The entity shadow should fade away at a slower rate, since the entity is easily more visible at a larger scale, and would be expected to still render it's shadow until further away.
Screenshots/Videos:
Notes:
- This issue is at least partially blocked (or at least related) by the decision of
MC-163468, since it's unclear currently if entity shadows should stop rendering in the first place. - Relates to MC-21024 MC-223687
- This is likely due to the fact that shadows and when they should render is dependant on the distance from the player's position, to the entity's position, rather than the distance to the entity's hitbox.
- Primary reason to consider this an issue, is that the current behavior makes it near impossible for larger entities shadows to render past a scale of ~15 to 20. Generally, when the entity is bigger you can not get close enough to it's position because the entity's hitbox slowly pushes you away.
- relates to
-
MC-163468 Entity shadows disappear when far away from the mob who casts them
- Resolved