Search Unity

Replacement shader Grabpass breaks reflection probe

Discussion in 'Shaders' started by RyanFavale, Sep 27, 2016.

  1. RyanFavale

    RyanFavale

    Joined:
    May 30, 2014
    Posts:
    28
    If I change the shader of an object in a script from a shader without any grabpasses to a shader with at least one grabpass, for some reason this breaks the reflection probe rendering (flipping rendering upside down for anything further than 0.87 meters from the probe camera, indepenant from near/far clipping planes). The relfection probe and the object being rendered are not related in any way that I know. BadReflections.JPG
     
  2. RyanFavale

    RyanFavale

    Joined:
    May 30, 2014
    Posts:
    28
    Solution: Always post your question somewhere to others and you'll probably figure it out on your own almost right away afterwards.

    Real Solution: Don't render the object into the reflections when it has a grabpass.