Figure: Diagnostic workflow: Inspect inputs/formats → Color conversion/blending → Compare final images
Figure: Diagnostic workflow: Inspect inputs/formats → Color conversion/blending → Compare final images

Cause and mechanism

A RenderTexture receives camera images or other rendering. If the same image looks darker or changes color, check its color format, sRGB conversion, exposure, tonemapping into the display range, and the display Shader separately. Trace the image from its source; RawImage does not treat every possible input identically as sRGB.

Check and correct the setup

  1. Disable preview and display post-processing initially and compare identical colors.
    Schematic: also inspect neutral white and gray
    Schematic: also inspect neutral white and gray
  2. Choose a suitable sRGB LDR format or linear floating-point HDR intermediate. Setting sRGB=true is not a universal fix.
    Schematic: also inspect neutral white and gray
    Schematic: also inspect neutral white and gray
  3. Compare with the standard UI shader; remove duplicate manual conversions and avoid tonemapping an already-finished preview twice.
    Schematic: also inspect neutral white and gray
    Schematic: also inspect neutral white and gray

Limits and verification

Volume Mask selects Volume layers, not UI pixels to exempt from a fullscreen effect. Separate composition paths where appropriate and compare neutral gray and primary colors.

A focused diagnostic setup

Focus on overall brightness using known gray/RGB patches in an RT displayed through standard RawImage. Set alpha to one initially to separate transparent-edge darkening.

Test in this order

  1. Disable capture/display grading and compare direct versus RT output.
    Schematic: also inspect neutral white and gray
    Schematic: also inspect neutral white and gray
  2. Record LDR/HDR formats and conversion locations, removing custom conversions individually.
    Schematic: also inspect neutral white and gray
    Schematic: also inspect neutral white and gray
  3. Restore post-processing and alpha only after the opaque color baseline matches.
    Schematic: also inspect neutral white and gray
    Schematic: also inspect neutral white and gray

Interpret the result

Overall darkness points toward conversion/exposure, while edge-only darkness suggests RGB/alpha composition. RawImage alone does not identify every input as sRGB.

Related explanations

References