Skip to content

Fix GLSL implementation of layer node#2368

Merged
jstone-lucasfilm merged 1 commit into
AcademySoftwareFoundation:mainfrom
jstone-lucasfilm:main
May 5, 2025
Merged

Fix GLSL implementation of layer node#2368
jstone-lucasfilm merged 1 commit into
AcademySoftwareFoundation:mainfrom
jstone-lucasfilm:main

Conversation

@jstone-lucasfilm

Copy link
Copy Markdown
Member

This changelist fixes a typo in the GLSL implementation of the layer node, where the throughput term was computed via addition rather than multiplication.

For more straightforward validation, the layer_bsdf.mtlx example has been updated so that the throughput computation in layer influences its rendered result.

This changelist fixes a typo in the GLSL implementation of the `layer` node, where the throughput term was computed via addition rather than multiplication.

For more straightforward validation, the `layer_bsdf.mtlx` example has been updated so that the throughput computation in `layer` influences its rendered result.
@jstone-lucasfilm

Copy link
Copy Markdown
Member Author

Here's a render of the layering example before the fix, where energy is unintentionally created between layers:

LayerExample_BeforeFix

And here's a render of the layering example after the fix:

LayerExample_AfterFix

@ld-kerley ld-kerley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me - thanks for catching my typo - sorry it slipped thru.

I'm glad we have a test case that exercises this correctly now.

@jstone-lucasfilm jstone-lucasfilm merged commit 308c7d0 into AcademySoftwareFoundation:main May 5, 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