Fix #107062: support opacityThreshold when exporting USD #107149

Merged
Michael Kowalski merged 3 commits from wave/blender_wave_Apple:contribs/T107062_opacity_threshold into main 2023-05-01 17:28:30 +02:00

3 Commits

Author SHA1 Message Date
Matt McLin a31fb92e99 Remove debug print statement
buildbot/vexp-code-patch-coordinator Build done. Details
2023-04-28 11:51:06 -07:00
Michael B Johnson 08447f1b2d Merge branch 'main' into contribs/T107062_opacity_threshold 2023-04-20 02:41:46 +02:00
Matt McLin 033703c933 Fix T107062: support opacityThreshold when exporting USD
This commit extends the USD Preview Surface material support to author the opacityThreshold attribute of materials on export, when the Alpha Clip blend mode is selected.

When authoring alpha cutouts in Blender, one sets the Blend Mode to "Alpha Clip", and the Clip Threshold to some value greater than zero.
When this case is detected on export, we now author the opacityThreshold attribute to match the specified clip threshold.

Note that opacityThreshold is already handled correctly on import, so this change allows the feature to be fully round-tripped.
2023-04-17 23:46:49 -07:00