Skip to content

Conversation

FrancescoC-unity
Copy link
Contributor

@FrancescoC-unity FrancescoC-unity commented May 13, 2020

The bug that it fixes is this: https://fogbugz.unity3d.com/f/cases/1243282/

The problem derives when shadergraph can generate a 0-length normal (for several manipulation that are possible, this is not impossible). This leads to a normalization that causes a div by 0, hence NaN ensue in lighting calculations.

I will backport when approved as I think there is a conflict that doesn't allow a simple cherry pick.

For QA:
Note that to repro you need to add a camera additional data to the camera and move around a bit when in play mode. Before this fix a small flash will happen.
Ping me and I can point to you where is a good spot to see the issue.

@FrancescoC-unity
Copy link
Contributor Author

Closing to being based on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants