Search Unity

Transparency problem with camera close to objects

Discussion in 'Shaders' started by ciprianb, Jul 19, 2014.

  1. ciprianb

    ciprianb

    Joined:
    Oct 11, 2013
    Posts:
    32
    Hi,

    I have a weird issue. I managed to get transparency working correctly on my game but, when camera is close, parts of the transparent objects disappear. If I change the render queue to background, then the problem is not there anymore but the SkyBox will "cut" the transparent objects. Here is what I am talking about:
    1 - From a distance, render queue transparent - everything okay

    2 - a bit closer, the opaque blocks will be seen in front of the glass

    3 - render queue to background, everything is good but the skybox is "cutting" the glass


    Any idea what can I do to avoid this behavior ? I want everything to be rendered like in case 3 but the skybox should not cut the glass.
     
  2. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    Are your opaque blocks also in the Transparent render queue?