Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

scenecolor during opaque rendering

Discussion in 'Graphics Experimental Previews' started by darkydoodle, Apr 24, 2019.

  1. darkydoodle

    darkydoodle

    Joined:
    Oct 27, 2018
    Posts:
    64
    Is it possible to get the scenecolor of the scene during opaque rendering ?
    For example, right now, I have a shader made with shader graph and some custom nodes that uses transparent rendering. I'm getting the scene color with a distorsion offset, then blend it with something else. The alpha ouput is 1, so I shouldn't really need the transparent rendering. To speed up everything, I'd like to do all these operations using opaque rendering.
    ==> If I change the render order of the material for these objects to 1, will I get the scenecolor of the previously drawed objects ? Or is it created later, after all opaque objects are drawed and before transparent ?
     
  2. darkydoodle

    darkydoodle

    Joined:
    Oct 27, 2018
    Posts:
    64
    After reading through the HDRP code, I found out that the _ColorPyramidTexture is written just before transparent and after all opaque. So I'm stuck with transparent rendering.