Search Unity

How to write complex shader with lightening ?

Discussion in 'Shaders' started by Narendraom, May 27, 2016.

  1. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    Hi am not too much experience in writing shader. I have a model and want to create effect like following image. How can i achieve effect like this please give suggestion. large.jpg

    Thanks
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,343
    Fresnel effect, rim light, edge glow.

    They're all names used to describe the same thing, a dot product of the view direction and surface normal, with some kind of modifier for the fall off curve usually. The unity surface shader examples page has a rim lighting example.
    http://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.html

    However since you don't seem to want any lighting apart from the rim light y might just want to search for other unity shader examples.
     
    Narendraom likes this.
  3. Narendraom

    Narendraom

    Joined:
    Jul 8, 2015
    Posts:
    35
    Thanks bgolus,
    I have got this effect by Fresnel Effect.