blender/tests/files/usd/textures
Jesse Yurkovich fb2e777c4d USD: Handle glass setups for the UsdPreviewSurface
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
2026-01-09 22:22:29 +01:00
..
small_cloud.vdb Move tests/data and assets to the main repository 2025-05-05 15:10:22 +02:00
test_alpha.png Move tests/data and assets to the main repository 2025-05-05 15:10:22 +02:00
test_displace.exr Move tests/data and assets to the main repository 2025-05-05 15:10:22 +02:00
test_grid_1001.png Move tests/data and assets to the main repository 2025-05-05 15:10:22 +02:00
test_grid_1002.png
test_normal.exr Move tests/data and assets to the main repository 2025-05-05 15:10:22 +02:00
test_normal_invertY.exr
test_single.png Move tests/data and assets to the main repository 2025-05-05 15:10:22 +02:00
test_sweep_snap.exr USD: Handle glass setups for the UsdPreviewSurface 2026-01-09 22:22:29 +01:00