Some fixes for renderable textures
This commit is contained in:
parent
c52556e8e1
commit
1b72ac47f1
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -227,7 +227,7 @@ namespace FirstPlugin
|
||||
bars = new BarsLib.BARS(stream);
|
||||
|
||||
if (bars.AmtaList.Count > 0)
|
||||
Nodes.Add("AMTA");
|
||||
Nodes.Add("Meta Data");
|
||||
|
||||
if (bars.audioList.Count > 0)
|
||||
Nodes.Add("Audio");
|
||||
|
@ -147,7 +147,7 @@ namespace Switch_Toolbox.Library.Rendering
|
||||
//While shaders could prevent this, converting is easier and works fine across all editors
|
||||
if (Runtime.UseDirectXTexDecoder)
|
||||
{
|
||||
ImageData.Add(STGenericTexture.DecodeBlock(ImageData[0],
|
||||
ImageData[0] = (STGenericTexture.DecodeBlock(ImageData[0],
|
||||
GenericTexture.Width,
|
||||
GenericTexture.Height,
|
||||
GenericTexture.Format,
|
||||
@ -164,7 +164,7 @@ namespace Switch_Toolbox.Library.Rendering
|
||||
case TEX_FORMAT.BC5_SNORM:
|
||||
pixelInternalFormat = PixelInternalFormat.CompressedRgRgtc2;
|
||||
|
||||
ImageData.Add(DDSCompressor.DecompressBC5(ImageData[0],
|
||||
ImageData[0] = (DDSCompressor.DecompressBC5(ImageData[0],
|
||||
(int)GenericTexture.Width, (int)GenericTexture.Height, true, true));
|
||||
pixelInternalFormat = PixelInternalFormat.Rgba;
|
||||
pixelFormat = OpenTK.Graphics.OpenGL.PixelFormat.Rgba;
|
||||
@ -195,11 +195,11 @@ namespace Switch_Toolbox.Library.Rendering
|
||||
default:
|
||||
if (Runtime.UseDirectXTexDecoder)
|
||||
{
|
||||
ImageData.Add(STGenericTexture.DecodeBlock(ImageData[0],
|
||||
ImageData[0] = STGenericTexture.DecodeBlock(ImageData[0],
|
||||
GenericTexture.Width,
|
||||
GenericTexture.Height,
|
||||
GenericTexture.Format,
|
||||
GenericTexture.PlatformSwizzle));
|
||||
GenericTexture.PlatformSwizzle);
|
||||
|
||||
pixelInternalFormat = PixelInternalFormat.Rgba;
|
||||
pixelFormat = OpenTK.Graphics.OpenGL.PixelFormat.Rgba;
|
||||
|
@ -183,9 +183,11 @@ namespace Switch_Toolbox.Library
|
||||
{
|
||||
CheckBuffers();
|
||||
|
||||
if (!Runtime.OpenTKInitialized || !Runtime.renderBones)
|
||||
if (!Runtime.OpenTKInitialized || !Runtime.renderBones || !Visible)
|
||||
return;
|
||||
|
||||
Console.WriteLine($"SKEL Visible " + Visible);
|
||||
|
||||
SF.Shader shader = OpenTKSharedResources.shaders["BONE"];
|
||||
shader.UseProgram();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user