Skip to content

fix: use SampleSH and set envLightColor as first light (#396) #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sindharta-tanuwijaya
Copy link

No description provided.

@Thaina
Copy link

Thaina commented Mar 15, 2025

Could I have some info about what actually fail here?

@sindharta-tanuwijaya
Copy link
Author

sindharta-tanuwijaya commented Mar 19, 2025

Could I have some info about what actually fail here?

It is our internal CI process, which needs to be updated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks SampleSH(normalDirection) is not added to float3 envLightColor unlike DoubleShadeeWithFeather.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that we should adopt saturate() instead of the former ones.

Copy link
Collaborator

@H3idi-X H3idi-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue started from 6000.0. We should add #if UNITY_VERSION >= 60000000 to some code. I'm checking what is the difference between 6000.x and 2023.2.x.

H3idi-X added a commit that referenced this pull request Apr 14, 2025
@H3idi-X
Copy link
Collaborator

H3idi-X commented May 1, 2025

@Thaina thank you for your contribution and the PR.
After investigating the issue, we identified the root cause and decided to address it with a fix in this PR:
Unity-Technologies/com.unity.toonshader/pull/414

We greatly appreciate your effort in raising the issue and providing a solution.

@H3idi-X H3idi-X closed this May 1, 2025
@sindharta sindharta deleted the fix/395 branch May 1, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants