Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Ghosting occurs when gameobject is dragged in front of shader

Discussion in 'Shader Graph' started by LostALife, Sep 19, 2023.

  1. LostALife

    LostALife

    Joined:
    Jul 19, 2020
    Posts:
    30
    Hi all,

    I am having an issue with my shader as when you drag a game object over it, it seems to leave a ghost affect once moved.
    The issue is with a simple grid shader which I will attach a screen shot of both the shader graph and the problem.
    Also to note, the ghosting affect only shows in the game window not the editor window when running...

    Would appreciate any insight!

    upload_2023-9-19_17-8-38.png

    Game Window:
    upload_2023-9-19_17-9-11.png

    Editor Window:
    upload_2023-9-19_17-9-51.png
     
  2. LostALife

    LostALife

    Joined:
    Jul 19, 2020
    Posts:
    30
    I figured this out! Fixed it by simply changing the shader surface type from "Opaque" to "Transparent", instead of using alpha clipping.