Fixed quantized preview 16bb preview
This commit is contained in:
@@ -159,7 +159,7 @@ namespace SplashEdit.RuntimeCode
|
||||
return psxTex;
|
||||
}
|
||||
|
||||
psxTex._maxColors = (int)Mathf.Pow((int)bitDepth, 2);
|
||||
psxTex._maxColors = (int)Mathf.Pow(2, (int)bitDepth);
|
||||
|
||||
TextureQuantizer.QuantizedResult result = TextureQuantizer.Quantize(inputTexture, psxTex._maxColors);
|
||||
|
||||
@@ -230,7 +230,7 @@ namespace SplashEdit.RuntimeCode
|
||||
{
|
||||
for (int x = 0; x < Height; x++)
|
||||
{
|
||||
tex.SetPixel(x, y, ImageData[x, y].GetUnityColor());
|
||||
tex.SetPixel(x, Height - 1 - y, ImageData[x, y].GetUnityColor());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
doc.meta
Normal file
8
doc.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 311ff9868024b5078bd12a6c2252a4ef
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
doc/splashbundle.md.meta
Normal file
7
doc/splashbundle.md.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1944ac962a00b23c2a880b5134cdc7ab
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user