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