This commit is contained in:
ousttrue
2021-03-12 20:40:01 +09:00
parent 07afd49193
commit fd2650f86f

View File

@@ -90,13 +90,13 @@ namespace UniGLTF
return dst;
}
public static Texture2D GetExportTexture(Texture2D texture, float smoothness)
public static Texture2D Export(Texture2D texture, float smoothness)
{
var converted = TextureConverter.Convert(texture, glTFTextureTypes.Metallic, x => Export(x, smoothness), null);
var converted = TextureConverter.Convert(texture, glTFTextureTypes.Metallic, x => ExportPixel(x, smoothness), null);
return converted;
}
public static Color32 Export(Color32 src, float smoothness)
public static Color32 ExportPixel(Color32 src, float smoothness)
{
var dst = new Color32
{