Search Issue Tracker

By Design

Votes

0

Found in [Package]

12.0.0

Issue ID

1349166

Regression

No

[HDRP] Iris Texture is applied inside of the Mesh when using Eye shader

Package: Scriptable Render Pipeline HD

-

How to reproduce:
1. Open the attached project's Scene labeled "EyeScene"
2. In Scene View, inspect the Sphere GameObject

Expected result: Iris Texture is applied on the outside of the Mesh
Actual result: Iris Texture is applied on the inside of the Mesh

Reproducible with: 10.5.1 (2020.3.14f1), 11.0.0 (2021.1.15f1), 12.0.0 (2021.2.0b2, 2022.1.0a2)
Couldn't test with: 7.7.0 (2019.4.28f1) (HDRP/Eye shader is not available)

  1. Resolution Note:

    The Eye ShaderGraph provided with HDRP is a shader built using the Eye master node and made to work with a human eye mesh. You can find examples of how to use the Eye shader in the HDRP Material Samples from the package manager. They use a mesh called HumanEyeModel.fsx, that is packaged with HDRP.

    This is due to how the Cornea refraction is simulated. If you wish to use a Sphere model for eyes, you can create a new ShaderGraph using the Eye Master Stack (https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@12.0/manual/master-stack-eye.html) and adapt the cornea refraction or other necessary parts to your mesh data

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.