Search Unity

Question RGBA32 and ARGB32: what are they? what's the difference?

Discussion in 'General Graphics' started by kodra_dev, Dec 1, 2022.

  1. kodra_dev

    kodra_dev

    Joined:
    Oct 31, 2022
    Posts:
    108
    Unity has both TextureFormat.ARGB32 and TextureFormat.RGBA32.The document says it's 8bit each channel in [0..1] range. But what are these formats exactly? 8bit is usually [0..255]. Do they just represent [0..255] divided by 255?

    Also why are there both ARGB32 and RGBA32? When should I use which?
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    There's a note in the link with ARGB32 that explains the difference. Normally you'd use RGBA32.
    Yes.