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
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Red squares instead of ticks in Import Activity Window options dropdown
- Multiple simultaneous input with the touch screen sometimes leaves button in not default state
- Crash on ShowDelayedContextMenu(bool) when changing the Size options of a Visual Element in the UIToolkit Inspector
- Crash when total memory consumption is over 2GB
- Red dots are rendered when copying texture with ASTC format and CompressGpu
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