Skip to content

Fix interpretation of subsurface weight in MDL#2536

Merged
jstone-lucasfilm merged 5 commits intoAcademySoftwareFoundation:mainfrom
krohmerNV:krohmer/PR_MDL_fix_subsurface_weight_semantic
Sep 2, 2025
Merged

Fix interpretation of subsurface weight in MDL#2536
jstone-lucasfilm merged 5 commits intoAcademySoftwareFoundation:mainfrom
krohmerNV:krohmer/PR_MDL_fix_subsurface_weight_semantic

Conversation

@krohmerNV
Copy link
Copy Markdown
Contributor

The subsurface weight should not be applied to the expected color but instead enable/disable the effect in general.
This means the semantic of the weight is meant for composition rather than turning down the volume absorption and scattering itself.

With the performance optimizations for Standard Surface and OpenPBR this issue surfaced since weights are not 1.0 anymore.

pablode added a commit to pablode/gatling that referenced this pull request Aug 28, 2025
Apparently this was not a codegen issue, but rather a bug in the SSS
implementation: AcademySoftwareFoundation/MaterialX#2536
@krohmerNV krohmerNV force-pushed the krohmer/PR_MDL_fix_subsurface_weight_semantic branch from b35575b to 0dd223e Compare September 2, 2025 10:41
@krohmerNV
Copy link
Copy Markdown
Contributor Author

Note, i added a few more materials to the tests because the pbrlib tests have been limited to surfaceshaders only. I'm not sure this was intentional.

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, @krohmerNV!

The only change that I'd recommend we omit is the extension of the default renderTestPaths.

Although this is definitely the right direction for the future, I'd like to defer this until we add support for controlling the order in which tests are organized into the final PDF, rather than the simple alphabetical order currently used.

This changelist restores the original set of render test paths for now, as we'd like to improve our control over the organization in the PDF before adding new renders by default.

Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
@jstone-lucasfilm jstone-lucasfilm changed the title MDL: Fix the use of the weight in the subsurface BSDF Fix interpretation of subsurface weight in MDL Sep 2, 2025
@jstone-lucasfilm jstone-lucasfilm merged commit 5beba1a into AcademySoftwareFoundation:main Sep 2, 2025
32 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