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
- Constant console errors when using Min/Max Slider in PlayMode
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
- [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices
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