The way the hotbar and crosshair break is that the textures turn full white, except for the special spectate-icons in the hotbar, which turn full black. The crosshair uses the normal texture again when the hotbar is set to be shown.
How to reproduce
Spawn a mob that applies a shader when spectated. For this, it is possible to use creepers, endermen or spiders.
Switch to spectator mode.
Use the attack button on the mob created through step 1.
Make the hotbar or the crosshair visible.
To make the hotbar visible, just press one of the hotbar keys.
To make the crosshair visible, make the spectated entity look at a container such as a chest.
See that instead of the normal appearance, the hotbar and crosshair each use a full white texture.
Attachments
2020-07-14_03.01.52.png: The creeper shader in 1.16.1 with shown hotbar
2020-07-14_03.04.20.png: The same shader in 1.15.2, where the desired appearance can be seen
Thank you for your report!
We're tracking this issue in MC-194675, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki