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. Dismiss Notice

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,209
    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.