Search Unity

Bug Apply a shader in URP render

Discussion in 'Shaders' started by cestop42, Dec 7, 2022.

  1. cestop42

    cestop42

    Joined:
    May 9, 2022
    Posts:
    10
    As I said in title, I apply the shader in the urp renderer, but it has a bug.

    shader code.
    upload_2022-12-7_21-20-10.png

    Pass code
    upload_2022-12-7_21-20-15.png

    Feature code
    upload_2022-12-7_21-20-26.png


    URP settings
    upload_2022-12-7_21-21-43.png

    I don't know what's the problem....
    how to solve this problem?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    What is 'a bug'
    What happens now and what should happen?
     
  3. cestop42

    cestop42

    Joined:
    May 9, 2022
    Posts:
    10
    oh,,,,okay that
    upload_2022-12-7_21-43-33.png

    it's the bug, it has afterImage
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    On the camera, what do you select as background? It it maybe set to do not clear? Or solid color? (A screenshot of the camera settings might be helpful)
     
  5. cestop42

    cestop42

    Joined:
    May 9, 2022
    Posts:
    10
    upload_2022-12-7_23-8-53.png
    sorry for the delay :(