Skip to content

Comments

Fix direct lighting in MslProgram::bindLighting#2781

Merged
jstone-lucasfilm merged 1 commit intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_direct_lighting_msl
Feb 19, 2026
Merged

Fix direct lighting in MslProgram::bindLighting#2781
jstone-lucasfilm merged 1 commit intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_direct_lighting_msl

Conversation

@jstone-lucasfilm
Copy link
Member

This changelist fixes a uniform name mismatch in MslProgram::bindLighting, which was causing the direct lighting term to be missing on MacOS, as reported in #2769.

In the MSL rendering path, uniforms are stored with a GlobalContext struct prefix, and the hasUniform and bindUniform methods correctly resolve these prefixed names through the global uniform name map.

This changelist fixes a uniform name mismatch in `MslProgram::bindLighting`, which was causing the direct lighting term to be missing on MacOS, as reported in AcademySoftwareFoundation#2769.

In the MSL rendering path, uniforms are stored with a `GlobalContext` struct prefix, and the `hasUniform` and `bindUniform` methods correctly resolve these prefixed names through the global uniform name map.
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.

LGTM!

@jstone-lucasfilm jstone-lucasfilm merged commit 71ae1fc into AcademySoftwareFoundation:main Feb 19, 2026
33 checks passed
@jstone-lucasfilm jstone-lucasfilm deleted the dev_direct_lighting_msl branch February 19, 2026 15:50
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