Method SetupTexture
SetupTexture(Scene, string, Material, PreviewSurfaceSample, Vector4, string, string, string, ConversionType)
Exports the given texture to the destination texture path and wires up the preview surface.
Declaration
protected static string SetupTexture(Scene scene, string usdShaderPath, Material material, PreviewSurfaceSample surface, Vector4 scale, string destTexturePath, string textureName, string textureOutput, ShaderExporterBase.ConversionType conversionType = ConversionType.None)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | |
string | usdShaderPath | |
Material | material | |
PreviewSurfaceSample | surface | |
Vector4 | scale | |
string | destTexturePath | |
string | textureName | |
string | textureOutput | |
ShaderExporterBase.ConversionType | conversionType |
Returns
Type | Description |
---|---|
string | Returns the path to the USD texture object. |