mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
fix textures UV. drop leftovers. properly map material_lo.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user