Files
FlaxEngine/Source/Engine/Content/MaterialBase.cs
2024-02-26 19:00:48 +01:00

38 lines
1.5 KiB
C#

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
namespace FlaxEngine
{
partial class MaterialBase
{
/// <summary>
/// Gets a value indicating whether this material is a surface shader (can be used with a normal meshes).
/// </summary>
public bool IsSurface => Info.Domain == MaterialDomain.Surface;
/// <summary>
/// Gets a value indicating whether this material is post fx (cannot be used with a normal meshes).
/// </summary>
public bool IsPostFx => Info.Domain == MaterialDomain.PostProcess;
/// <summary>
/// Gets a value indicating whether this material is decal (cannot be used with a normal meshes).
/// </summary>
public bool IsDecal => Info.Domain == MaterialDomain.Decal;
/// <summary>
/// Gets a value indicating whether this material is a GUI shader (cannot be used with a normal meshes).
/// </summary>
public bool IsGUI => Info.Domain == MaterialDomain.GUI;
/// <summary>
/// Gets a value indicating whether this material is a terrain shader (cannot be used with a normal meshes).
/// </summary>
public bool IsTerrain => Info.Domain == MaterialDomain.Terrain;
/// <summary>
/// Gets a value indicating whether this material is a particle shader (cannot be used with a normal meshes).
/// </summary>
public bool IsParticle => Info.Domain == MaterialDomain.Particle;
}
}