mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 23:07:51 +01:00
Fix ColorTable preview with legacy color tables.
This commit is contained in:
parent
f11cefcec1
commit
b30de460e7
5 changed files with 23 additions and 19 deletions
|
|
@ -8,7 +8,7 @@ namespace Penumbra.Interop.MaterialPreview;
|
|||
public sealed unsafe class LiveColorTablePreviewer : LiveMaterialPreviewerBase
|
||||
{
|
||||
public const int TextureWidth = 4;
|
||||
public const int TextureHeight = GameData.Files.MaterialStructs.ColorTable.NumUsedRows;
|
||||
public const int TextureHeight = GameData.Files.MaterialStructs.LegacyColorTable.NumUsedRows;
|
||||
public const int TextureLength = TextureWidth * TextureHeight * 4;
|
||||
|
||||
private readonly IFramework _framework;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue