Search Unity

Need help with unexpected shader behavior

Discussion in 'General Graphics' started by Belleal, Apr 24, 2020.

  1. Belleal

    Belleal

    Joined:
    Jan 11, 2016
    Posts:
    17
    Hi guys, I encountered a strange behavior while working on my game. I am using the same shared material with the same properties on two different objects and I am having slightly different results on the visuals. The two objects have the game general properties and are in the same layer and tag. I don't have that much experience with shaders so, for the love of everything, I cannot fathom what could be different to cause this behavior:

    upload_2020-4-24_20-48-21.png

    Any guidance or advice will be much appreciated.

    Also, as additional information - I am changing the sharedMaterial property of the MeshRenderer at runtime between light and dark material. Maybe that has something to do with this strange effect?
     
    Last edited: Apr 24, 2020