That's not quite true: the compositor needs to support it. There's a protocol [1] for it that's supported by a redshift with a patch [2]. It also works out the box for any wlroots-based [3] compositors, like sway [4].
[1] https://github.com/swaywm/wlr-protocols/blob/master/unstable...
[2] https://github.com/minus7/redshift/tree/wayland