0

Distortion Shader Causing Camera to Freeze

JamieC 9 years ago 0
So, we have two cameras in our scene.



  • 1)
    A main camera rendering everything but a UI layer. The clear flag is Skybox, and this camera has a depth of -1.
  • 2)
    A second UI camera rendering the UI layer. The clear flag is depth only, and this camera has a depth of 1.
    When a material using the Distortion Shader is destroyed, the game stops rendering. It is caused by the second UI camera being on a depth of 1.

    Here is the node network I'm using for the distortion shader:


    Image 305