Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Eye shader: Physically based Refraction +[Source code]

Discussion in 'Shaders' started by AnmarCG, Nov 15, 2016.

  1. AnmarCG

    AnmarCG

    Joined:
    Nov 13, 2016
    Posts:
    2
    Hello :)
    I had implemented a realistic eye shader to unity, originally made by: Jorge Jimenez, it's taken from: www.iryoku.com, and I want to share it with you guys ;)

    Screenshots:





    OFF


    ON


    pointer - "The eyeball is following & looking at the cube pointer via script :D"


    In the attachment package, there's a simple iris texture that I did using MS paint, you can replace it with your own detailed one.


    for more information you can download the full presentation:
    http://www.iryoku.com/downloads/Next-Generation-Character-Rendering-v6.pptx
    slides: 229-231.

    Special thanks to Jorge Jimenez for his help ;)
     

    Attached Files:

    UnityLighting and Flurgle like this.
  2. ahmidou

    ahmidou

    Joined:
    Sep 17, 2012
    Posts:
    87
    Hi @AnmarCG,
    I was trying to get it working on another mesh, but it wasn't looking right.
    I finally noticed that the effect was changing(wrong) when the object was scaled.

    Anyway thanks for this asset :)
     
  3. Flurgle

    Flurgle

    Joined:
    May 16, 2016
    Posts:
    389
    That looks fabulous
     
  4. Marcus276

    Marcus276

    Joined:
    Apr 21, 2017
    Posts:
    1
    Thankyou for this ..I am a Maya and Z Brush user ....But I see the great potential with Unity as i have stayed away from it for quite a while ..then I saew the "adam" demo..cheers Anwar
     
  5. D-Coy

    D-Coy

    Joined:
    Jun 2, 2013
    Posts:
    16
    Thanks, this is really cool!
    I was wondering what it would take to add spec, or possibly refl to this shader? Ive had a go but run into incompatibilities... and I dont really know what Im doing as Ive never written shaders before :/
    Thanks again.