Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

[SOLVED] Alpha Source from Gray Scale Issue

Discussion in 'General Graphics' started by TitoOliveira, Dec 12, 2019.

  1. TitoOliveira

    TitoOliveira

    Joined:
    Aug 4, 2014
    Posts:
    63
    I'm having troble creating effects because my textures always end up with a gray border when i set the alpha source to be from the grayscale. Anyone knows why's that and how to circumvent?

     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,438
    The alpha is correct in this case, but the color also still contains the varying values.

    You want an image with this as alpha and white as color. Easy to make in any image editing software.

    So, how to circumvent, don't use Grey Scale as Alpha Source, but make the texture with correct alpha and color instead.
     
    TitoOliveira likes this.
  3. TitoOliveira

    TitoOliveira

    Joined:
    Aug 4, 2014
    Posts:
    63
    Ah, i see what you mean. So setting the alpha to
    Oh i see. Don't know why i assumed otherwise.

    Got something like this and it's working as intended now.
    upload_2019-12-12_14-50-18.png
     
unityunity