Refactor material shaders generator to use modular features as extensions

This commit is contained in:
Wojtek Figat
2021-02-04 15:27:38 +01:00
parent 9e6243adcc
commit b5847eb0d6
10 changed files with 86 additions and 100 deletions

View File

@@ -43,11 +43,6 @@ struct ForwardShadingFeature : MaterialShaderFeature
// Material shader feature that adds geometry hardware tessellation (using Hull and Domain shaders).
struct TessellationFeature : MaterialShaderFeature
{
enum { SRVs = 0 };
static void Bind(MaterialShader::BindParameters& params, byte*& cb, int32& srv)
{
}
#if USE_EDITOR
static void Generate(GeneratorData& data);
#endif
@@ -68,3 +63,11 @@ struct LightmapFeature : MaterialShaderFeature
static void Generate(GeneratorData& data);
#endif
};
// Material shader feature that adds distortion vectors rendering pass.
struct DistortionFeature : MaterialShaderFeature
{
#if USE_EDITOR
static void Generate(GeneratorData& data);
#endif
};