mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-22 07:47:48 +01:00
Material editor 2099
This commit is contained in:
parent
f64fdd2b26
commit
b8d09ab660
15 changed files with 1221 additions and 651 deletions
|
|
@ -190,7 +190,7 @@ internal record class ResolveContext(Configuration Config, IObjectIdentifier Ide
|
|||
|
||||
if (WithNames)
|
||||
{
|
||||
var name = samplers != null && i < samplers.Count ? samplers[i].Item2?.Name : null;
|
||||
var name = samplers != null && i < samplers.Length ? samplers[i].ShpkSampler?.Name : null;
|
||||
node.Children.Add(texNode.WithName(name ?? $"Texture #{i}"));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
15
Penumbra/Interop/Structs/CharacterBaseExt.cs
Normal file
15
Penumbra/Interop/Structs/CharacterBaseExt.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Runtime.InteropServices;
|
||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Render;
|
||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Scene;
|
||||
|
||||
namespace Penumbra.Interop.Structs;
|
||||
|
||||
[StructLayout( LayoutKind.Explicit )]
|
||||
public unsafe struct CharacterBaseExt
|
||||
{
|
||||
[FieldOffset( 0x0 )]
|
||||
public CharacterBase CharacterBase;
|
||||
|
||||
[FieldOffset( 0x258 )]
|
||||
public Texture** ColorSetTextures;
|
||||
}
|
||||
|
|
@ -9,6 +9,9 @@ public unsafe struct HumanExt
|
|||
[FieldOffset( 0x0 )]
|
||||
public Human Human;
|
||||
|
||||
[FieldOffset( 0x0 )]
|
||||
public CharacterBaseExt CharacterBase;
|
||||
|
||||
[FieldOffset( 0x9E8 )]
|
||||
public ResourceHandle* Decal;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue