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

Add mode input to sheen_bsdf #1880

Merged

Conversation

jstone-lucasfilm
Copy link
Member

This changelist adds a mode input to sheen_bsdf, allowing the user to select between Conty-Kulla and Zeltner sheen models.

The Zeltner model is initially supported only in GLSL, ESSL, and MSL, integrating recent work from Stephen Hill, with OSL and MDL falling back to the Conty-Kulla model for now.

The graph implementation of open_pbr_surface has been updated to take advantage of this new feature, and the open_pbr_velvet.mtlx example has been adjusted to take the visual behavior of Zeltner sheen into account.

This changelist adds a `mode` input to `sheen_bsdf`, allowing the user to select between Conty-Kulla and Zeltner sheen models.

The Zeltner model is initially supported only in GLSL, ESSL, and MSL, integrating recent work from Stephen Hill, with OSL and MDL falling back to the Conty-Kulla model for now.

The graph implementation of `open_pbr_surface` has been updated to take advantage of this new feature, and the `open_pbr_velvet.mtlx` example has been adjusted to take the visual behavior of Zeltner sheen into account.
Comment on lines 62 to 63
bsdf.throughput = vec3(1.0 - dirAlbedo * weight);
bsdf.response = Li * color * dirAlbedo * weight;
Copy link
Contributor

@shill-lucasfilm shill-lucasfilm Jun 11, 2024

Choose a reason for hiding this comment

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

Since these lines are the same as in the if clause, you could move them to the end (and make dirAlbedo non-local).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good suggestion, and will do!

@jstone-lucasfilm jstone-lucasfilm merged commit 3af0077 into AcademySoftwareFoundation:main Jun 11, 2024
34 checks passed
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