Relates to: MC-276568 MC-277447 MC-277450.
The bug
When loading the game's resources, Minecraft generates mipmapped textures for all types of bed. However, it does not use them at all, wasting game resources.
How to reproduce
A resource pack is attached to this ticket.
Download and apply the attached resource pack
Place a bunch of white beds
Place a bunch of white carpet
Compare
Expected results
The beds would fade into a smooth gray in the distance, much like the carpets.
Actual results
No such thing happens and we get incredibly grainy Moire patterns.
How to fix
Either make beds use mipmapping like other blocks (easily doable if MC-276855 gets fixed), or don't generate these mipmapped textures for beds at all. Several other atlases (gui, map decorations, mob effects, paintings, particles) don't generate mipmapped versions of themselves, so why should beds if they're not going to be used?
Can confirm.