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

Updates to double-sided materials for 1.39 #1866

Conversation

niklasharrysson
Copy link
Contributor

@niklasharrysson niklasharrysson commented Jun 4, 2024

This change list updates the library files so they match the definitions for surfacematerial and surface nodes in v1.39.

@@ -221,6 +221,7 @@
<input name="bsdf" type="BSDF" value="" doc="Distribution function for surface scattering." />
<input name="edf" type="EDF" value="" doc="Distribution function for surface emission." />
<input name="opacity" type="float" value="1.0" doc="Surface cutout opacity" />
<input name="thin_walled" type="boolean" value="false" uniform="true" doc="Option to make the surface thin-walled." />
<output name="out" type="surfaceshader" />
</nodedef>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the old deprecated node thin_surface still remains below, and we can remove this in another PR.

I'm not sure if we need to add code for upgrading from thin_surface to surface with thin_walled enabled? The thin_surface node was never implemented in any backends, except maybe MDL, so I'm not sure if this was ever used by anyone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question, and my own sense is that the deprecated thin_surface node has not yet been used in real-world assets, because it's only been supported on a single target. So I'd say that it's likely safe to remove this node without an upgrade path in a future change.

Copy link
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, thanks @niklasharrysson!

@jstone-lucasfilm jstone-lucasfilm changed the title Update pbrlib definitions to match 1.39 spec for doublesided materials Updates to double-sided materials for 1.39 Jun 5, 2024
@jstone-lucasfilm jstone-lucasfilm merged commit 44bf535 into AcademySoftwareFoundation:main Jun 5, 2024
34 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.

None yet

2 participants