Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question What value should I set in terms of linear when I create a Texture2DArray?

Discussion in 'General Graphics' started by suppertbw, Aug 18, 2023.

  1. suppertbw

    suppertbw

    Joined:
    Mar 16, 2016
    Posts:
    33
    When I create three Texture2DArray assets which includes albedo, normal and RMO(roughtness, metal, occlusion) respectively, I'm a bit confused about the linear value in the constructor of Texture2DArray.

    The document said linear means does the texture contain non-color data. So I create the albedo Texture2DArray asset with
    Code (CSharp):
    1. new Texture2DArray(width, height, count, format, false, false)
    because the albedo contains color data.

    However, the normal and RMO Texture2DArray assets don't contain color data in my opinion. Then I create them with
    Code (CSharp):
    1. new Texture2DArray(width, height, count, format, false, true)
    .

    Is it correct?
     
  2. grizzly

    grizzly

    Joined:
    Dec 5, 2012
    Posts:
    356
    Yes. When Linear set to true, Unity will not gamma correct the data.