Search Unity

Bug Default 2DArray is always gray

Discussion in 'General Graphics' started by rwblodgett, Jun 4, 2021.

  1. rwblodgett

    rwblodgett

    Joined:
    Apr 4, 2017
    Posts:
    67
    Declaring a Texture Array texture property, and then NOT assigning seems to always have a default color of "gray", not what I specify.

    _Color("Color", Color) = (1,1,1,1)
    _MainTex ("Texture2DArray display name", 2DArray) = "white" {}

    seems to always sample gray output color.

    I suppose it ignores the "white" and assumes you are going to assign a texture? I'm not always going to assign a texture, so I want it to be "white" by default.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    Unfortunately Unity does only have a grey default texture array.