Skip to content

Add retroreflective to specular BSDFs#2783

Merged
jstone-lucasfilm merged 13 commits intoAcademySoftwareFoundation:mainfrom
msuzuki-nvidia:add-retroreflective
Mar 31, 2026
Merged

Add retroreflective to specular BSDFs#2783
jstone-lucasfilm merged 13 commits intoAcademySoftwareFoundation:mainfrom
msuzuki-nvidia:add-retroreflective

Conversation

@msuzuki-nvidia
Copy link
Copy Markdown
Contributor

Add a retroreflective boolean input to the specular BSDF nodes (dielectric_bsdf, conductor_bsdf, generalized_schlick_bsdf).

  • Update the PBR specification with the new input
  • Add retroreflective input to node definitions in pbrlib_defs.mtlx
  • Add GLSL implementation. OSL and MDL have interface-only changes (the parameter is ignored)

Also includes minor test infrastructure fixes:

  • Make FilePath::createDirectory() recursive to support nested output directories
  • Resolve relative paths to absolute in OslRenderer before working directory changes
  • Skip blur.mtlx in MDL render tests due to material name mismatch

Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Copy link
Copy Markdown
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, @msuzuki-nvidia, and I'd like to aim to include it in MaterialX v1.39.5 if possible.

Let's get additional feedback from others in the physically based shading community and see how it looks to them.

Copy link
Copy Markdown
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 good to me, @msuzuki-nvidia, and I had just one recommendation for controlling the new behavior of FilePath::createDirectory.

Comment thread source/MaterialXFormat/File.cpp Outdated
Copy link
Copy Markdown
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.

Great work, thanks @msuzuki-nvidia!

@jstone-lucasfilm jstone-lucasfilm merged commit f6dc35f into AcademySoftwareFoundation:main Mar 31, 2026
36 checks passed
ashwinbhat added a commit to autodesk-forks/MaterialX that referenced this pull request Apr 2, 2026
Merge from main at 

Add retroreflective to specular BSDFs (AcademySoftwareFoundation#2783) f6dc35f (March 31)
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