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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Glow motion arround object with Shader Graph

Discussion in 'Shader Graph' started by tyronleo, May 16, 2020.

  1. tyronleo

    tyronleo

    Joined:
    Apr 28, 2018
    Posts:
    4
    Hi to all,

    I'm new to shaders and with the new Shader Graph from Unity I'm trying to experiment and archive some effects that I have in mind for my games.

    I want to get something like this:
    https://imgur.com/vqy9y3H

    I want a glow effect to go arround my object. In my case it's a square neon light, so it's simple I think.

    What I have so far, experimenting and unifying different tutorials, effects, etc.:
    https://imgur.com/aPW95S0

    This is the current Shader Graph, i know its a mess and maybe there are useless nodes, etc.:
    https://imgur.com/J3jzGE6

    This is the tutorial I think it's the most accurate to what I need:


    Thanks in advance for any tip that help me find the correct path to archive the effect.
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi @tyronleo,
    You really can't get a bloom-like effect other than maybe pushing vertices out like in a typical outline shader, like in this thread:
    https://forum.unity.com/threads/lwrp-outline-shader-help-needed.710642/

    But it will not look like that image in your first link. You might get some cartoony, somewhat flat effect most likely... If you want proper halos etc., it's better to use post-processing effects and bloom, which is intended just for that.
     
  3. tyronleo

    tyronleo

    Joined:
    Apr 28, 2018
    Posts:
    4
    Hi @Olmi,

    Thanks for the answer. I already have post-processing and the glow effect is not the problem really. I was thinking las hours on how about to have 2 materials. One for the glow effect. The other for the shader than simply do the effect of alpha all the object that I dont whant to see to get the effect that I want.
    I don't really know if that is possible, just it came to my mind. The problem for me is to get the effect of moving a texture, an alpha or color arround the object like the effect I want with a shader. Or if there is another way to archive that effect...