List of HDR-aware shaders?

AFAIK it’s just Megatron and guest-advanced, currently? Or are there others?

What do you mean with HDR aware? afaik there’s no way for a shader to know if the display is capable of HDR.

1 Like

It has to work within the Rec 2020 color space. For example, in guest-advanced we have color palettes that cannot be properly displayed without HDR / Rec 2020

A better way to phrase it might be: which shaders take advantage of HDR Rec 2020?

3 Likes

IIRC color correction shaders like gba-color and psp-color also have options for rec 2020.

I use HDR with any and every shader I use in RetroArch. Also the “HDR” components in Sony Megatron is actually modular and can be chained with other Shaders.

From the RetroArch\shaders\shaders_slang\hdr\shaders\hdr10.slang file:

Part of the crt-sony-megatron shader group. Does the exact same thing as RetroArch does internally to map into HDR10 space.

This is used to do this mapping BEFORE screen effects are applied.

Originally part of the crt\crt-sony-pvm-4k-hdr.slangp but can be used for any shader

From the RetroArch\shaders\shaders_slang\hdr\shaders\inverse_tonemap.slang file:

Part of the crt-sony-megatron shader group. Does the exact same thing as RetroArch does internally to inverse tonemap from a SDR image to HDR.

This is used to do this mapping BEFORE screen effects are applied.

Originally part of the crt\crt-sony-pvm-4k-hdr.slangp but can be used for any shader

So my take is that these have been available for use with any shader for years.

Besides that, there are several other ways to “inject” HDR into RetroArch’s SDR content in order to unlock the full brightness of HDR displays.

2 Likes

Thanks- I just kinda assumed there was some kind of necessary shader component to take advantage of the wider color space but I guess everything is handled within Retroarch.

1 Like