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

Align smoothstep edge cases with OSL #1985

Conversation

ld-kerley
Copy link
Contributor

Following a conversation on ASWF slack this PR was posted to OSL refining the edge cases for smoothstep().

AcademySoftwareFoundation/OpenShadingLanguage#1851

This PR aligns the GLSL/MSL code with this change.

Before merging we need to decide...

  • Does a similar change need to be applied to the MDL code? I couldn't find any definitive direction on the edge case handling, other than the spec saying its undefined.
  • Do we need to worry at all about some sort of graceful upgrade/backwards compatibility? I'd vote for "no" and just class this as a bug-fix.

The MaterialX specification currently does not specify an opinion about the edges cases here, but I'm going to leave that to up coming specification refinement to add normative language to handle.

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.

Thanks for this fix, @ld-kerley, and this looks good to me!

@jstone-lucasfilm jstone-lucasfilm merged commit 81e3e24 into AcademySoftwareFoundation:main Sep 5, 2024
35 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.

3 participants