Skip to content

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
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