use the un-linearized lambert transparency to author displayOpacity when using displayColors shading mode #751
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prior to PR #707, the un-linearized transparency value was being used to compute a transparency "average", which was then used to author
displayOpacity
on the bound gprim if it did not already have an authoreddisplayOpacity
, as well as adisplayOpacity
input on the shader prim. It looks like an unintended side effect of #707 was that it was made to use the linearized transparency for this purpose instead. Note the use of the linearizedtransparency
instead of the previously un-linearizedmayaTransparency
here:https://github.com/Autodesk/maya-usd/pull/707/files#diff-5fe2e05011c04068f0f7249a36061532R138
Both of these behaviors seem somewhat dubious. It doesn't really seem like the shading mode exporter should be authoring
displayOpacity
of the bound gprim, since that is more a property of the geometry than the material. It also doesn't appear as if thedisplayOpacity
input being authored on the shader prim is used for anything.Ignoring those two oddities for now, the changes here should address the "regression" introduced by #707. We can revisit the behavior of the displayColors shading mode (or better yet work towards removing it!) in follow-up commits.