Overlay: Fix overlays being washed out by render colors
Clamping here might be a bit too much if output is expected to be HDR. But we don't support HDR atm so clamping is fine.
This commit is contained in:
@@ -163,6 +163,7 @@ vec4 OCIO_ProcessColor(vec4 col, vec4 col_overlay, vec2 noise_uv)
|
||||
col = OCIO_to_display_linear_with_look(col, lut3d_texture);
|
||||
|
||||
if (overlay) {
|
||||
col = clamp(col, 0.0, 1.0);
|
||||
col *= 1.0 - col_overlay.a;
|
||||
col += col_overlay; /* Assumed unassociated alpha. */
|
||||
}
|
||||
|
Reference in New Issue
Block a user