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

USD ShaderAlgo : Improve shader type heuristics #1410

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

johnhaddon
Copy link
Member

This lets us round-trip the Shader::getType() for Arnold lights, which is necessary for Gaffer features like visualisations and the LightTool.

This is nasty stuff really, and in the long term we just want to stop using shader types completely. We need the fix here in the short term because the longer term fix in Gaffer (not using the type at all) requires an ABI break, and isn't suitable for release in Gaffer 1.3. I intend to do that work next though, so things are moving in the right direction for 1.4.

This lets us round-trip the `Shader::getType()` for Arnold lights, which is necessary for Gaffer features like visualisations and the LightTool.
Copy link
Collaborator

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

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

Heuristic looks reasonable to me. Arnold does have a visible_light shader that would be classified incorrectly here, but that shader seems like an internal detail as it's not documented anywhere I can find and isn't usable in Gaffer as it requires specifying a POINTER to a light...

@johnhaddon johnhaddon merged commit b9fc7dc into ImageEngine:RB-10.5 Feb 21, 2024
4 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