The Bug:
The entity shadows of ender dragons are too small in relation to the size of their models.
Steps to Reproduce:
Enable entity shadows in your video settings.
Summon an ender dragon by using the command provided below.
/summon minecraft:ender_dragon ~ ~ ~ {NoAI:1b,Silent:1b}
Look at the size of its shadow.
Take note as to whether or not the entity shadows of ender dragons are too small in relation to the size of their models.
Observed Behavior:
The entity shadow is too small.
Expected Behavior:
The entity shadow would be made much larger to match the size of its model.
Code Analysis:
Code analysis by @unknown can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 3 using Mojang mappings.
net.minecraft.client.renderer.entity.EnderDragonRenderer.java
public class EnderDragonRenderer extends EntityRenderer<EnderDragon> {
...
public EnderDragonRenderer(EntityRendererProvider.Context context) {
super(context);
this.shadowRadius = 0.5f;
this.model = new DragonModel(context.bakeLayer(ModelLayers.ENDER_DRAGON));
}
...
If we look at the above class, we can see that the radius of ender dragons' shadows is 0.5f
which is around the size of a block, which is too small in relation to the size of their models.
This ticket relates to MC-250107, MC-249841, MC-249840, and MC-249386.