mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
The UsdPreviewSurface has odd semantics related to its `opacity` input where it is not only used for translucency/transmission but also for so-called "alpha cutouts", despite the fact that the UsdPreviewSurface, and all other USD surfaces, not having an actual Alpha input. Up until this PR we were only considering the alpha cutout type networks rather than transmission, which has meant we could never import/export something like glass. Additionally, `opacity` is the inverse of `transmission weight`, which is used on all other, modern, material surfaces, which massively complicates export and import. We have to invert the opacity <-> transmission values/graphs to properly handle it. This PR will handle some very simple networks where things are plugged into our Transmission Weight socket. Like all other material network support, processing here is limited to the usage of the Principled BSDF. Direct usage of e.g. a Glass BSDF node is not supported. Tests updated to include "constant" opacity values as well as several texture-based networks (see screenshot). Ref: #100452 Pull Request: https://projects.blender.org/blender/blender/pulls/152546 |
||
|---|---|---|
| .. | ||
| small_cloud.vdb | ||
| test_alpha.png | ||
| test_displace.exr | ||
| test_grid_1001.png | ||
| test_grid_1002.png | ||
| test_normal.exr | ||
| test_normal_invertY.exr | ||
| test_single.png | ||
| test_sweep_snap.exr | ||