fix textures UV. drop leftovers. properly map material_lo.

This commit is contained in:
bird_egop
2026-06-06 23:25:14 +03:00
parent 5baf3f324f
commit 64fd54635e
9 changed files with 36 additions and 73 deletions
@@ -1,3 +1,5 @@
using TexmLib;
namespace NResUI.Rendering.Viewport;
public sealed class ViewportMaterial
@@ -6,10 +8,13 @@ public sealed class ViewportMaterial
public uint TextureHandle { get; }
public bool HasTexture => TextureHandle != 0;
public ViewportMaterial(string name, uint textureHandle = 0)
public TexmFile? Texm { get; }
public ViewportMaterial(string name, uint textureHandle = 0, TexmFile? texm = null)
{
Name = name;
TextureHandle = textureHandle;
Texm = texm;
}
public static ViewportMaterial Untextured { get; } = new("Untextured");