Add **Depth Offset to materials**

This commit is contained in:
Wojtek Figat
2023-01-29 22:09:51 +01:00
parent a214c14a4d
commit a219a3d2eb
13 changed files with 73 additions and 13 deletions

View File

@@ -330,6 +330,11 @@ API_ENUM(Attributes="Flags") enum class MaterialUsageFlags : uint32
/// The flag used to indicate that material uses refraction feature.
/// </summary>
UseRefraction = 1 << 6,
/// <summary>
/// The flag used to indicate that material uses per-pixel depth offset feature.
/// </summary>
UseDepthOffset = 1 << 7,
};
DECLARE_ENUM_OPERATORS(MaterialUsageFlags);

View File

@@ -10,7 +10,7 @@
/// <summary>
/// Current materials shader version.
/// </summary>
#define MATERIAL_GRAPH_VERSION 159
#define MATERIAL_GRAPH_VERSION 160
class Material;
class GPUShader;