Search Unity

Bug _CameraSortingLayerTexture fails to get the Volumetric of Light2D.

Discussion in '2D' started by Ningu83, Oct 27, 2021.

  1. Ningu83

    Ningu83

    Joined:
    Feb 25, 2017
    Posts:
    9
    A typical distortion shader was created using _CameraSortingLayerTexture in the shader graph.

    I applied the shader to the Sprite Renderer and placed it on the screen.
    It seemed to work without any problems, but only one thing is that if the Volumetric value of Light2D is set, the effect will be applied after the distortion shader image is output.

    Is there a bug in the order of drawing? Or do I have to change the settings?

    Volumetric On :
    Volumetric_On.jpg

    Volumetric Off :
    Volumetric_Off.jpg
     
  2. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    356
    Hi Ningu83,

    I am not trying to hijack your thread, but was just wondering where there is information on how to set this up? I googled around for a long time, but I cannot seem to find any information on how to use it. Is there some information you found somewhere?
     
  3. Ningu83

    Ningu83

    Joined:
    Feb 25, 2017
    Posts:
    9
    TomTheMan59 likes this.