Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
710 stars 96 forks source link

NaNs in latest update of hair package #83

Open qlee01 opened 2 months ago

qlee01 commented 2 months ago

Hi, seems that the new version produces NaNs (there was a bug early on which got fixed, caused by NaNs in normals calculation). Have not deeply checked, but demo scene with own simple shader gives black screen flickering on camera movement.

qlee01 commented 2 months ago

The issue is hair shader in Unity 6 (set to either "Physical" or "PhysicalCinematic"). Issue goes away as as soon as hair shader is set to "Approximate". Also seems to only occur in scene view (?). Uploading bug report to Unity right now.

qlee01 commented 2 months ago

Actually it's more complicated: with Hair package 0.11.0-exp.1 issue does not occur, so it indeed seems to be related to the combination of 0.13.0-exp.1 and Physical Hair shader.