Search Unity

Shader renders black when using GrabPass

Discussion in 'Editor & General Support' started by Nervous-Nerve, Mar 6, 2013.

  1. Nervous-Nerve

    Nervous-Nerve

    Joined:
    Jan 29, 2013
    Posts:
    13
    I've run into a problem recently, with the GrabPass command in ShaderLab.

    It seems that as soon as that little command is added to a program, it will output completely black and unlit, even if the shader was working fine until then and it doesn't even touch the GrabTexture.

    I posted this on the ShaderLab subforum, and with help from the community was able to deduce that it wasn't a problem with my code, but in fact a technical issue in Unity, that apparently only appears on certain systems.

    Has anyone else noticed this problem with shaders using GrabPass, and is there a way to fix it?

    I'm using Windows 8 Pro x64, Unity 4.o.1 and made sure to update to the latest graphics drivers. My CPU is an Intel Core 2 Duo, and the graphics card a GeForce 460 SE. I know these are not exactly state of the art, so does GrabPass only work on newer hardware?
     
    Last edited: Mar 6, 2013
  2. Cjreek

    Cjreek

    Joined:
    Apr 23, 2013
    Posts:
    33
    I've got the exact same problem. Does anyone know the solution to this?
     
  3. b4cksp4ce

    b4cksp4ce

    Joined:
    Apr 13, 2011
    Posts:
    114
    Same here :)
     
  4. Aldrick

    Aldrick

    Joined:
    Feb 19, 2014
    Posts:
    64
    In my case,windows and android display grabpass shader right.But when it comes to iOS,once the grabpass shader object is in the field of view of camera,the whole screen becomes black(except UI elements),and the screen gets back to normal only when the grabpass shader object gets out of field of view.It only happens on iOS.Don't know if it is a Unity bug or something.
     
  5. bbbbn

    bbbbn

    Joined:
    Jun 18, 2018
    Posts:
    2
    Does anyone know the solution to this?
     
  6. bbbbn

    bbbbn

    Joined:
    Jun 18, 2018
    Posts:
    2
    Do you know the solution to this?
     
  7. pushxtonotdie

    pushxtonotdie

    Joined:
    Oct 21, 2010
    Posts:
    111
    Does anyone know the solution to this?