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.

Graphics.Blit to RenderTexture. Impossible to produce a RenderTexture with alpha?

Discussion in 'General Graphics' started by Void24, Jan 30, 2015.

  1. Void24

    Void24

    Joined:
    Oct 15, 2013
    Posts:
    50
    I have tried every combination of shader blending, texture formats, and ColorMask A..

    I can not get a RenderTexture to have anything other than a purely solid alpha channel. Is this even possible?

    Can a RenderTexture's alpha component be altered through Graphics.Blit?
     
  2. Void24

    Void24

    Joined:
    Oct 15, 2013
    Posts:
    50
    Question still stands, but as I have done more experimenting, I should correct it.

    I rewrote my shader as a vert/frag shader, and got alpha working! So the problem is in the surface shader workflow.

    The question should now read:
    Surface shader blitted to RenderTexture. Impossible to produce a RenderTexture with alpha using a surface shader?
     
  3. boundingbox

    boundingbox

    Joined:
    Mar 31, 2013
    Posts:
    30
    I am using a vert frag shader and I am cannot get it to write to the alpha channel, how are you getting it to work?