Add **Screen Space Reflections for transparent materials**

This commit is contained in:
Wojtek Figat
2022-04-12 22:16:06 +02:00
parent e32ad93020
commit 58491e6d23
8 changed files with 207 additions and 11 deletions

View File

@@ -272,6 +272,11 @@ API_ENUM(Attributes="Flags") enum class MaterialFeaturesFlags : uint32
/// The flag used to enable refraction offset based on the difference between the per-pixel normal and the per-vertex normal. Useful for large water-like surfaces.
/// </summary>
PixelNormalOffsetRefraction = 1 << 9,
/// <summary>
/// The flag used to enable high-quality reflections based on the screen space raytracing. Useful for large water-like surfaces. The Forward Pass materials option.
/// </summary>
ScreenSpaceReflections = 1 << 10,
};
DECLARE_ENUM_OPERATORS(MaterialFeaturesFlags);

View File

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