Skip to content

[partial] Extend the dielectric_bsdf node to carry a priority value#2276

Closed
kprobinson wants to merge 7 commits intoAcademySoftwareFoundation:mainfrom
kprobinson:patch/kprobinson/nested-dielectric-priority
Closed

[partial] Extend the dielectric_bsdf node to carry a priority value#2276
kprobinson wants to merge 7 commits intoAcademySoftwareFoundation:mainfrom
kprobinson:patch/kprobinson/nested-dielectric-priority

Conversation

@kprobinson
Copy link
Copy Markdown

@kprobinson kprobinson commented Mar 14, 2025

This would be one straightforward approach to adding nested dielectric priority to MaterialX. I've made a very small extension to the dielectric_bsdf nodedef, just to include the priority parameter. The default is zero, and I've noted that higher values mean greater precedence, following the semantics of OSL (as well as that of Renderman and Arnold). Then the priority value is passed down to the underlying OSL shader so it can be used.

I believe this would be the most focused way to maintain compatibility with existing MaterialX workflows.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Mar 14, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@kprobinson kprobinson marked this pull request as draft March 14, 2025 21:22
@kprobinson kprobinson marked this pull request as ready for review March 15, 2025 02:49
@kprobinson kprobinson marked this pull request as draft March 19, 2025 00:05
@kprobinson kprobinson changed the title Add nested dielectric priority to MaterialX Extend the dielectric_bsdf node to carry a "priority" parameter Mar 19, 2025
@kprobinson kprobinson changed the title Extend the dielectric_bsdf node to carry a "priority" parameter Extend the dielectric_bsdf node to carry a priority value Mar 19, 2025
@kprobinson kprobinson changed the title Extend the dielectric_bsdf node to carry a priority value [partial] Extend the dielectric_bsdf node to carry a priority value Mar 19, 2025
@jstone-lucasfilm
Copy link
Copy Markdown
Member

@kprobinson Let's merge this into your latest proposal PR at #2310, and we can focus our discussions there.

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