Method ExportLit
ExportLit(Scene, string, Material, PreviewSurfaceSample, string)
Export a HDRP Lit shader to USD.
Declaration
public static void ExportLit(Scene scene, string usdShaderPath, Material material, PreviewSurfaceSample surface, string destTexturePath)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | The scene (representing a UsdStage) in which to store output PreviewSurface prims |
string | usdShaderPath | The path of the preview surface shader in the USD stage. |
Material | material | The Unity material to export. |
PreviewSurfaceSample | surface | A sample containing the output preview surface data. |
string | destTexturePath | A path indicating where created output textures are written. |