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

Autodesk: Bugfix for MaterialX shadows in Metal #3264

Conversation

erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

See Issue #3176 for steps to reproduce. MaterialX shadows weren't appearing, but USD handles them properly.

The issue is that the MaterialX shader generation is looking for vec3 (used by Glsl) when Metal uses float3.

https://github.com/AcademySoftwareFoundation/MaterialX/blob/de64c319eaf07e2afcae0be3dc5165d78569f008/source/MaterialXGenGlsl/Nodes/SurfaceNodeGlsl.cpp#L252

https://github.com/AcademySoftwareFoundation/MaterialX/blob/de64c319eaf07e2afcae0be3dc5165d78569f008/source/MaterialXGenMsl/Nodes/SurfaceNodeMsl.cpp#L253

Fixed files from Issue:
image
image

Fixes Issue(s)

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10055

@jesschimein
Copy link
Contributor

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pixar-oss pixar-oss merged commit 70b526f into PixarAnimationStudios:release Oct 25, 2024
3 of 5 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