mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 21:24:18 +01:00
Spike custom vertex attribute handling
This commit is contained in:
parent
38d855684b
commit
ca393267f6
3 changed files with 100 additions and 6 deletions
|
|
@ -373,7 +373,7 @@ public class MeshExporter
|
|||
|
||||
return materialUsages switch
|
||||
{
|
||||
(2, true) => typeof(VertexColor1Texture2),
|
||||
(2, true) => typeof(VertexTexture2ColorFfxiv),
|
||||
(2, false) => typeof(VertexTexture2),
|
||||
(1, true) => typeof(VertexColor1Texture1),
|
||||
(1, false) => typeof(VertexTexture1),
|
||||
|
|
@ -413,13 +413,13 @@ public class MeshExporter
|
|||
);
|
||||
}
|
||||
|
||||
if (_materialType == typeof(VertexColor1Texture2))
|
||||
if (_materialType == typeof(VertexTexture2ColorFfxiv))
|
||||
{
|
||||
var uv = ToVector4(attributes[MdlFile.VertexUsage.UV]);
|
||||
return new VertexColor1Texture2(
|
||||
ToVector4(attributes[MdlFile.VertexUsage.Color]),
|
||||
return new VertexTexture2ColorFfxiv(
|
||||
new Vector2(uv.X, uv.Y),
|
||||
new Vector2(uv.Z, uv.W)
|
||||
new Vector2(uv.Z, uv.W),
|
||||
ToVector4(attributes[MdlFile.VertexUsage.Color])
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue