Skip to content
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

Initial support for Zeltner sheen #1825

Conversation

shill-lucasfilm
Copy link
Contributor

This is a first version of the GLSL implementation, which is currently inactive but can be enabled in place of the existing sheen model via the SHEEN_METHOD #define in mx_sheen_bsdf.glsl.

In contrast to the reference implementation (https://github.com/tizian/ltc-sheen), this version uses analytic fits instead of a table, to ease integration. I plan to improve the quality of the fits in the future (particularly the directional albedo), and also add a sampling function.

This is a first version of the GLSL implementation, which is currently inactive but can be enabled in place of the existing sheen model via the SHEEN_METHOD #define in mx_sheen_bsdf.glsl.

In contrast to the reference implementation (https://github.com/tizian/ltc-sheen), this version uses analytic fits instead of a table, to ease integration. I plan to improve the quality of the fits in the future (particularly the directional albedo), and also add a sampling function.

Remove debug code
@shill-lucasfilm
Copy link
Contributor Author

The macOS shader validation test is currently failing due to the MSL backend lacking support for inversesqrt. I have a PR already open for that (#1824).

Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

This looks great to me, thanks @shill-lucasfilm, and the new code is lightweight enough that I believe we can move forward with a merge, making additional refinements in future pull requests.

@jstone-lucasfilm jstone-lucasfilm merged commit 28f8e8d into AcademySoftwareFoundation:dev_1.39 May 24, 2024
34 checks passed
@shill-lucasfilm shill-lucasfilm deleted the zeltner_sheen branch June 1, 2024 03:02
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.

2 participants