Files
oak-editor/app/shaders/whitebalance.frag
T
Mike-Solar 76f5c2a65b color: input colorspace auto-detection, HDR export tags, LGG/white balance nodes, more LUT formats, waveform parade
- media color primaries/transfer tags now flow from the FFmpeg probe
  through VideoParams into Footage::get_colorspace_to_use(); precedence
  is user override > media tags > project default
- export nclc tags derive from the output colorspace (PQ/HLG/BT.2020,
  P3, sRGB, Rec.601, Rec.709) instead of hardcoded BT.709
- new OCIO Color Grading (Log) node (lift/gamma/gain) and White Balance
  node (kelvin temperature + tint, HDR-safe)
- LUT whitelist extended to 9 OCIO-supported formats
- waveform scope gains an RGB parade mode (GPU and software paths)
- tests updated for the new colorspace precedence
2026-07-19 21:45:51 +08:00

16 lines
338 B
GLSL

uniform sampler2D tex_in;
uniform vec3 wb_gain_in;
in vec2 ove_texcoord;
out vec4 frag_color;
void main(void)
{
vec4 source = texture(tex_in, ove_texcoord);
// Deliberately not clamped: white balance must also work on HDR/linear
// footage with values above 1.0
frag_color = vec4(source.rgb * wb_gain_in, source.a);
}