Blender  V3.3
usd_writer_material.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
4 #include <pxr/pxr.h>
5 #include <pxr/usd/usd/prim.h>
6 #include <pxr/usd/usd/stage.h>
7 #include <pxr/usd/usdShade/material.h>
8 
9 #include <string>
10 
11 struct Material;
12 struct USDExportParams;
13 struct bNode;
14 struct bNodeTree;
15 
16 namespace blender::io::usd {
17 
18 struct USDExporterContext;
19 
33 void create_usd_preview_surface_material(const USDExporterContext &usd_export_context,
35  pxr::UsdShadeMaterial &usd_material,
36  const std::string &default_uv = "");
37 
38 /* Entry point to create USD Shade Material network from Blender viewport display settings. */
39 void create_usd_viewport_material(const USDExporterContext &usd_export_context,
41  pxr::UsdShadeMaterial &usd_material);
42 
43 } // namespace blender::io::usd
Material material
void create_usd_preview_surface_material(const USDExporterContext &usd_export_context, Material *material, pxr::UsdShadeMaterial &usd_material, const std::string &default_uv)
void create_usd_viewport_material(const USDExporterContext &usd_export_context, Material *material, pxr::UsdShadeMaterial &usd_material)