9b863d6093
HDR (Graphics > Display, off by default) presents to an scRGB swapchain where the surface offers it. The frame is drawn as in SDR, in vanilla's gamma space; a last pass decodes it at the Paper White and lifts light sources (blocks that emit light, lava, the sun and the moon) evenly towards the Peak Brightness. The mesher marks emitting faces with EMISSIVE_LAYER (bit 14 of the layer); the frame's alpha carries the mark to the HDR pass, which lifts only pixels that still show the world before the hand and HUD. horizon-hdr sends HDR metadata through VK_EXT_hdr_metadata, which wgpu doesn't: without it KWin clips scRGB content above 1.0 (80 nits). Part of #1441. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>