Search Unity

Ambient Occlusion and Unity 3.4

Discussion in 'Editor & General Support' started by Gaspedal, Jul 29, 2011.

  1. Gaspedal

    Gaspedal

    Joined:
    Mar 29, 2009
    Posts:
    376
    I have imported the new post efffects from 3.4 in my project and now Ambient Occlusion from Unity 3.3 (SSAOEffect.js+Shader) doesn't work. :(
    I get an shader error :"RenderTexture warning: Destroying active render texture. Switching to main context."

    How can I fix this ? My experience with shader programming is not good. :D

    Thanks in advance.
     
    Last edited: Jul 29, 2011
  2. saymoo

    saymoo

    Joined:
    May 19, 2009
    Posts:
    850
    why bring it back to 3.3? that's doing things reversed.
     
  3. Gaspedal

    Gaspedal

    Joined:
    Mar 29, 2009
    Posts:
    376
    Sorry, my fault (have edit my question). I want use the ssoaeffect.js from unity 3.3 in unity 3.4 with new post effects and this doesn't work. I get an error. But when I use only the 3.3 effects in unity 3.4, it works fine (without importing post effects from 3.4

    Or exist a new version of ambient occlusion for unity 3.4 that works fine with new post effects?
     
    Last edited: Jul 30, 2011