Search Unity

New 2D Renderer Data is messing up my shaders

Discussion in 'General Graphics' started by dr4, Jan 10, 2020.

  1. dr4

    dr4

    Joined:
    Jan 14, 2015
    Posts:
    108
    Sorry, I just realised I posted this in the wrong section!

    Hi guys,

    To take advantage of all the potential of the new unity lights I wanted to use the new 2D Renderer data Renderer, the problem is that as soon as I put it on some shaders that are using "Camera Opaque" to create some sort of glass effect just become gray.

    so for example with this I have this:

    upload_2020-1-10_23-19-0.png

    upload_2020-1-10_23-18-40.png

    but if I add the new 2d renderer it becomes gray and totally loses the effect:

    upload_2020-1-10_23-17-59.png

    upload_2020-1-10_23-19-51.png


    I assume that the problem is that somehow it affects the "_CameraOpaqueTexture" or the way it works, any suggestions of how have both things working together?


    and now that I'm on it what if I want to have more than once custom rerderer type, is that possible?
     

    Attached Files:

    Last edited: Jan 13, 2020