1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix gfbmdl vertex colors

This commit is contained in:
KillzXGaming 2019-11-26 20:18:50 -05:00
parent a8ad624e53
commit 53a70c2381

View File

@ -173,7 +173,7 @@ namespace FirstPlugin
if (attribute.FormatID == BufferFormat.Byte) if (attribute.FormatID == BufferFormat.Byte)
colors1 = ParseBuffer(reader, attribute.FormatID, attribute.TypeID); 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; break;
case VertexType.Color2: case VertexType.Color2:
OpenTK.Vector4 colors2 = new OpenTK.Vector4(1, 1, 1, 1); OpenTK.Vector4 colors2 = new OpenTK.Vector4(1, 1, 1, 1);