Skip to content

Conversation

@jstone-lucasfilm
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm commented Jan 2, 2026

This changelist adds a new GitHub CI step to compare the PBR Nodes specification and PBR data libraries using comparenodedefs.py.

Based on the results of the new GitHub CI step, several minor improvements to the PBR and Standard Nodes specifications have been made:

  • Update the data type of absorption inputs from color3 to vector3 to match the data libraries.
  • Update the name of absorption outputs to match the data libraries.
  • Update the data type of the intensity input of the light node to match the data libraries.
  • Simplify the data tables for the displacement node, but leave it in the Standard Nodes specification.

Additionally, this changelist adds support for the or conjunction in comparenodedefs.py, interpreting it in the same fashion as a comma.

This changelist adds a new GitHub CI step to compare the PBR Nodes specification and PBR data libraries using comparenodedefs.py.

Based on the results of the new GitHub CI step, several minor improvements to the PBR Nodes specification have been made:

- Update the data type of `absorption` inputs from `color3` to `vector3` to match the data libraries.
- Update the name of `absorption` outputs to match the data libraries.
- Move the `displacement` node from Standard Nodes to PBR Nodes to match the data libraries.

Additionally, this changelist adds support for the `or` conjunction in `comparenodedefs.py`, interpreting it in the same fashion as a comma.
@jstone-lucasfilm jstone-lucasfilm changed the title Apply comparenodedefs.py to PBR Nodes Apply comparenodedefs.py to PBR Nodes Jan 2, 2026
Copy link
Contributor

@niklasharrysson niklasharrysson 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!

Just a comment that it seams more appropriate to have the displacement node located in stdlib. Not for this PR, but perhaps we should move it there consistently (nodedef, code and spec) in a future PR.

@jstone-lucasfilm
Copy link
Member Author

That's a good point, @niklasharrysson, and @dbsmythe mentioned the same issue in a side thread.

For now, I'd be happy to leave the displacement node in its current location within the Standard Nodes specification, and we can consider the move between data libraries to be work for a future PR.

With that approach, our comparenodedefs.py output can be considered a reminder that we still need to take this step in the future.

@jstone-lucasfilm jstone-lucasfilm merged commit 6882b34 into AcademySoftwareFoundation:main Jan 4, 2026
33 checks passed
@jstone-lucasfilm jstone-lucasfilm deleted the dev_compare_pbr branch January 4, 2026 21:07
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