Refactor material shaders generator to use modular features as extensions
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user