mirror of https://github.com/mpv-player/mpv
vo_opengl: Reword comment in shader
I didn't quite understand this comment after looking at the code again months later, so I reworded it for better clarity.
This commit is contained in:
parent
39126c3828
commit
3803c14279
|
@ -419,8 +419,9 @@ void main() {
|
|||
lessThanEqual(color.br, vec2(0))) + color.gg;
|
||||
#endif
|
||||
#ifdef USE_COLORMATRIX
|
||||
// Clamp down here to avoid clipping CbCr details before CONST_LUMA
|
||||
// has a chance to convert them.
|
||||
// CONST_LUMA involves numbers outside the [0,1] range so we make sure
|
||||
// to clip here, after the (possible) USE_CONST_LUMA calculations are done,
|
||||
// instead of immediately after the colormatrix conversion.
|
||||
color = clamp(color, 0, 1);
|
||||
#endif
|
||||
// If we are scaling in linear light (SRGB or 3DLUT option enabled), we
|
||||
|
|
Loading…
Reference in New Issue