Max K-means customization in PSXObjectExporter component
This commit is contained in:
@@ -27,6 +27,8 @@ namespace PSXSplash.RuntimeCode
|
|||||||
[Range(1, 256)]
|
[Range(1, 256)]
|
||||||
public int Height = 128;
|
public int Height = 128;
|
||||||
|
|
||||||
|
public int MaxKMeans = 50;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public ushort[] ExportTexture(GameObject gameObject)
|
public ushort[] ExportTexture(GameObject gameObject)
|
||||||
@@ -49,7 +51,7 @@ namespace PSXSplash.RuntimeCode
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var (indexedPixels, _) = ImageQuantizer.Quantize(newTexture, (int)TextureType, 100);
|
var (indexedPixels, _) = ImageQuantizer.Quantize(newTexture, (int)TextureType, MaxKMeans);
|
||||||
return indexedPixels;
|
return indexedPixels;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,7 +79,7 @@ namespace PSXSplash.RuntimeCode
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var (_, generatedClut) = ImageQuantizer.Quantize(newTexture, (int)TextureType, 100);
|
var (_, generatedClut) = ImageQuantizer.Quantize(newTexture, (int)TextureType, MaxKMeans);
|
||||||
return generatedClut;
|
return generatedClut;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user