Some fixes for applying in nutexb
This commit is contained in:
parent
c03e90d331
commit
25681de95c
Binary file not shown.
@ -595,12 +595,14 @@ namespace FirstPlugin
|
||||
{
|
||||
if (!IsSwizzled)
|
||||
{
|
||||
// MipCount = GenerateMipCount(bitmap.Width, bitmap.Height);
|
||||
MipCount = GenerateMipCount(bitmap.Width, bitmap.Height);
|
||||
ImageData = GenerateMipsAndCompress(bitmap, Format);
|
||||
|
||||
// ImageData = GenerateMipsAndCompress(bitmap, Format);
|
||||
return;
|
||||
}
|
||||
|
||||
MipCount = GenerateMipCount(bitmap.Width, bitmap.Height);
|
||||
|
||||
Texture tex = new Texture();
|
||||
tex.Height = (uint)bitmap.Height;
|
||||
tex.Width = (uint)bitmap.Width;
|
||||
@ -626,9 +628,8 @@ namespace FirstPlugin
|
||||
tex.SurfaceDim = SurfaceDim.Dim2D;
|
||||
tex.SampleCount = 1;
|
||||
tex.Pitch = 32;
|
||||
tex.MipOffsets = new long[tex.MipCount];
|
||||
|
||||
MipCount = GenerateMipCount(bitmap.Width, bitmap.Height);
|
||||
tex.MipOffsets = new long[tex.MipCount];
|
||||
|
||||
var mipmaps = TextureImporterSettings.SwizzleSurfaceMipMaps(tex,
|
||||
GenerateMipsAndCompress(bitmap, Format), MipCount);
|
||||
|
Loading…
Reference in New Issue
Block a user