Commit 1a1cdcc3 by huangdarwin Committed by Rohit Singh

HDR: Update glsl color transfer errors to use unique colors.

Each error will make the output be a solid color with a unique color.

PiperOrigin-RevId: 501824355
parent 4ade37c4
...@@ -152,8 +152,8 @@ highp vec3 applyBt2020ToBt709Ootf(highp vec3 linearRgbBt2020) { ...@@ -152,8 +152,8 @@ highp vec3 applyBt2020ToBt709Ootf(highp vec3 linearRgbBt2020) {
} else if (uInputColorTransfer == COLOR_TRANSFER_HLG) { } else if (uInputColorTransfer == COLOR_TRANSFER_HLG) {
return applyHlgBt2020ToBt709Ootf(linearRgbBt2020); return applyHlgBt2020ToBt709Ootf(linearRgbBt2020);
} else { } else {
// Output red as an obviously visible error. // Output green as an obviously visible error.
return vec3(1.0, 0.0, 0.0); return vec3(0.0, 1.0, 0.0);
} }
} }
...@@ -224,8 +224,8 @@ highp vec3 applyOetf(highp vec3 linearColor) { ...@@ -224,8 +224,8 @@ highp vec3 applyOetf(highp vec3 linearColor) {
} else if (uOutputColorTransfer == COLOR_TRANSFER_LINEAR) { } else if (uOutputColorTransfer == COLOR_TRANSFER_LINEAR) {
return linearColor; return linearColor;
} else { } else {
// Output red as an obviously visible error. // Output blue as an obviously visible error.
return vec3(1.0, 0.0, 0.0); return vec3(0.0, 0.0, 1.0);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment