Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Help Wanted Unity Eye Refraction Shader in URP

Discussion in 'Shader Graph' started by FGPArthurVII, Jul 30, 2021.

  1. FGPArthurVII

    FGPArthurVII

    Joined:
    Jan 5, 2015
    Posts:
    105
    Greetings,

    I was making this simple refraction shader while following a tutorial, It was meant to be (At first) used for the Cornea (lens part of the eye) of my character in URP:

    upload_2021-7-30_18-52-37.png

    But as it turns out because It uses a method in which we use Scene Color Node, and this being about what's on screen by certain angles, the refraction gets hard enough to project some of the character's sclera (white part of the eye) on It. Of course, It should only show the Iris (colorful part of the eye) which is what's inside of It.

    upload_2021-7-30_18-55-39.png

    Then I was burning my brains trying to think of a solution to avoid It grabbing stuff which is not seen THROUGH It.

    Note that I don't intend to use It only for the eye tho.

    Does anyone know how to fix It?

    thanks,
    Arthur
     
unityunity