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

Open
wants to merge 1 commit into
base: release
Choose a base branch
from

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

Filed as internal issue #USD-10055

@jesschimein
Copy link

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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