Search Unity

My first shader! (inspired by Halo)

Discussion in 'Shaders' started by Warrior1424, Oct 21, 2012.

  1. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    980
    I was playing a lot of Halo Reach, and was analyzing their shaders, and I tried to achieve a similar effect.
    Here's what my shader has:
    -Base Texture
    -Base Spec
    -Detail Texture
    -Detail Spec
    -Detail Mask
    -Base Normal
    -Reflection

    And here's some pictures:

    Left is my shader, right is standard bumped specular




    NOTE: The mask keeps the detail from occuring in unwanted areas. Notice how the detail is only on the metal parts.


    Here's what it looks like in the editor. Still have some sorting to do.
     
  2. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    980
    Just realized I posted this in the wrong area...
    Sorry!
     
  3. arashi256

    arashi256

    Joined:
    Oct 11, 2012
    Posts:
    3
    That's awesome. I wish I knew how to write shaders :(
     
  4. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    1,645
    Any chance to get the hands on it? It looks really awesome :)
     
  5. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    980
    I might release it when its done.
    Still have things to add first, like overall color, team color, and some other stuff.
     
  6. RC-1290

    RC-1290

    Joined:
    Jul 2, 2012
    Posts:
    635
    Looks nice :)
    Are you using the alpha channel of the main texture for anything? Or is the detail mask separated for a different reason?
     
  7. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    980
    I don't know how to use the alpha channel so I use a separate mask.
     
  8. Regretful123

    Regretful123

    Joined:
    Nov 5, 2014
    Posts:
    3
    I know this thread is very old, but just wondering, you don't mind if I could try and recreate this? Maybe a better color channel map for the detail maps?
     
  9. RC-1290

    RC-1290

    Joined:
    Jul 2, 2012
    Posts:
    635
    Unity 5's standard shader seems to have support for this built-in.
     
unityunity