mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix Blender 3.6 support for custom colour attribute
This commit is contained in:
parent
72775a80bf
commit
1649da70a8
1 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,8 @@ and there's reason to overhaul the export pipeline.
|
|||
|
||||
public struct VertexColorFfxiv : IVertexCustom
|
||||
{
|
||||
[VertexAttribute("_FFXIV_COLOR", EncodingType.UNSIGNED_BYTE, false)]
|
||||
// NOTE: We only realistically require UNSIGNED_BYTE for this, however Blender 3.6 errors on that (fixed in 4.0).
|
||||
[VertexAttribute("_FFXIV_COLOR", EncodingType.UNSIGNED_SHORT, false)]
|
||||
public Vector4 FfxivColor;
|
||||
|
||||
public int MaxColors => 0;
|
||||
|
|
@ -80,7 +81,7 @@ public struct VertexTexture1ColorFfxiv : IVertexCustom
|
|||
[VertexAttribute("TEXCOORD_0")]
|
||||
public Vector2 TexCoord0;
|
||||
|
||||
[VertexAttribute("_FFXIV_COLOR", EncodingType.UNSIGNED_BYTE, false)]
|
||||
[VertexAttribute("_FFXIV_COLOR", EncodingType.UNSIGNED_SHORT, false)]
|
||||
public Vector4 FfxivColor;
|
||||
|
||||
public int MaxColors => 0;
|
||||
|
|
@ -162,7 +163,7 @@ public struct VertexTexture2ColorFfxiv : IVertexCustom
|
|||
[VertexAttribute("TEXCOORD_1")]
|
||||
public Vector2 TexCoord1;
|
||||
|
||||
[VertexAttribute("_FFXIV_COLOR", EncodingType.UNSIGNED_BYTE, false)]
|
||||
[VertexAttribute("_FFXIV_COLOR", EncodingType.UNSIGNED_SHORT, false)]
|
||||
public Vector4 FfxivColor;
|
||||
|
||||
public int MaxColors => 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue