Search Unity

Bug Shader bug

Discussion in 'Editor & General Support' started by Zombikotx, Apr 17, 2020.

  1. Zombikotx

    Zombikotx

    Joined:
    Dec 24, 2015
    Posts:
    4
    Faced a problem in Unity 2019.3.10f (HDRP) When a shader (created in the chart) is added to the scene, it emits light in game modes, but it does not work at all on the stage.


    Then what it looks like in the graph editor
     

    Attached Files:

  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,195
    You have Post-Processing running in the Scene view?

    upload_2020-4-17_12-3-40.png
     
  3. Zombikotx

    Zombikotx

    Joined:
    Dec 24, 2015
    Posts:
    4
    A shader should not emit light, but for some reason it does. But at the same time, in the shader editor, everything looks as it should.If you enable post processing, then the radiation appears on the scene
     
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,195
    Have you tried it in a different scene? The HDRP demo scene has a lot of lighting and post processing, so maybe it's just reflecting and blooming at lot in that scene, where it wouldn't in a scene with fewer camera effects.

    If you increase the roughness of your material, does the glow go away? It's hard to tell if the object is acting emissive, or if it's just reflecting a lot of light.
     
  5. Zombikotx

    Zombikotx

    Joined:
    Dec 24, 2015
    Posts:
    4
    Even on an empty scene, it works like this, but if you use the project with the Universal render pipeline, the shader works fine