Fix gfbmdl vertex colors
This commit is contained in:
parent
a8ad624e53
commit
53a70c2381
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user