Commit: 2b3f5cb965adfeae446cf8fe77530bef3dd2fc5d
Author: Michael Kowalski
Date: Mon Apr 11 21:12:10 2022 -0400
Branches: universal-scene-description
https://developer.blender.org/rB2b3f5cb965adfeae446cf8fe77530bef3dd2fc5d
USD export: handle USD Preview Surface emission.
Now setting the USD Preview Surface emissiveColor input
on export.
===================================================================
M source/blender/io/usd/intern/usd_writer_material.cc
===================================================================
diff --git a/source/blender/io/usd/intern/usd_writer_material.cc
b/source/blender/io/usd/intern/usd_writer_material.cc
index 4f03acace0c..64639bd5ba6 100644
--- a/source/blender/io/usd/intern/usd_writer_material.cc
+++ b/source/blender/io/usd/intern/usd_writer_material.cc
@@ -75,6 +75,7 @@ static const pxr::TfToken clamp("clamp",
pxr::TfToken::Immortal);
static const pxr::TfToken repeat("repeat", pxr::TfToken::Immortal);
static const pxr::TfToken wrapS("wrapS", pxr::TfToken::Immortal);
static const pxr::TfToken wrapT("wrapT", pxr::TfToken::Immortal);
+static const pxr::TfToken emissiveColor("emissiveColor",
pxr::TfToken::Immortal);
} // namespace usdtokens
/* Cycles specific tokens (Blender Importer and HdCycles) */
@@ -271,6 +272,7 @@ static InputSpecMap &preview_surface_input_map()
{"Clearcoat", {usdtokens::clearcoat, pxr::SdfValueTypeNames->Float,
usdtokens::r, true}},
{"Clearcoat Roughness",
{usdtokens::clearcoatRoughness, pxr::SdfValueTypeNames->Float,
usdtokens::r, true}},
+ {"Emission", {usdtokens::emissiveColor, pxr::SdfValueTypeNames->Color3f,
usdtokens::rgb, true}},
};
return input_map;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs