From 53a70c2381515859f4a36b6da9fe6deca21b27f8 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Tue, 26 Nov 2019 20:18:50 -0500 Subject: [PATCH] Fix gfbmdl vertex colors --- .../FileFormats/Pokemon/GFBMDL/GFLXMeshBufferHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/Pokemon/GFBMDL/GFLXMeshBufferHelper.cs b/File_Format_Library/FileFormats/Pokemon/GFBMDL/GFLXMeshBufferHelper.cs index e9212f61..afce5bc1 100644 --- a/File_Format_Library/FileFormats/Pokemon/GFBMDL/GFLXMeshBufferHelper.cs +++ b/File_Format_Library/FileFormats/Pokemon/GFBMDL/GFLXMeshBufferHelper.cs @@ -173,7 +173,7 @@ namespace FirstPlugin if (attribute.FormatID == BufferFormat.Byte) colors1 = ParseBuffer(reader, attribute.FormatID, attribute.TypeID); - vertex.col = new OpenTK.Vector4(colors1.X, colors1.Y, colors1.Z, colors1.W); + vertex.col = colors1 / 255f; break; case VertexType.Color2: OpenTK.Vector4 colors2 = new OpenTK.Vector4(1, 1, 1, 1);