Search Unity

White edges in a generated texture issue

Discussion in 'Scripting' started by vipvex, Nov 28, 2014.

  1. vipvex

    vipvex

    Joined:
    Dec 6, 2011
    Posts:
    72
    I am generating a texture at run time and coloring it using SetPixel yet I am getting weird white edges around the sides. I have read that its an issue with the alpha channel, but I'm not sure to fix it at run time. Could anyone help me out here?

    The issue:
     
  2. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    Looks more like you aren't clamping the texture
     
  3. vipvex

    vipvex

    Joined:
    Dec 6, 2011
    Posts:
    72
    I am clamping the texture.