mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
17 lines
415 B
C#
17 lines
415 B
C#
namespace NResUI.Rendering.Viewport;
|
|||
|
|
|
||
|
|
public sealed class ViewportMaterial
|
||
|
|
{
|
||
|
|
public string Name { get; }
|
||
|
|
public uint TextureHandle { get; }
|
||
|
|
public bool HasTexture => TextureHandle != 0;
|
||
|
|
|
||
|
|
public ViewportMaterial(string name, uint textureHandle = 0)
|
||
|
|
{
|
||
|
|
Name = name;
|
||
|
|
TextureHandle = textureHandle;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static ViewportMaterial Untextured { get; } = new("Untextured");
|
||
|
|
}
|