Editor/UpgradedShaderGraph/Core/Compiler/ShadingModels/Lit.cs

Static helper for a Lit shading model used by an upgraded Shader Graph compiler. It exposes a dictionary of supported feature flags and a small shader code snippet string that returns the standard shading model result.

namespace Editor.ShaderGraphExtras;
public static class LitShadingModel
{
	public static Dictionary<string, bool> Features => new()
	{
        { "SupportsAlbedo", true},
		{ "SupportsEmission", true },
        { "SupportsOpacity", true},
		{ "SupportsNormal", true },
		{ "SupportsRoughness", true },
		{ "SupportsMetalness", true },
		{ "SupportsAmbientOcclusion", true },
		{ "SupportsPositionOffset", true },
        { "SupportsPixelDepthOffset", false},

		{ "SupportsOpaqueBlendMode", true},
		{ "SupportsMaskedBlendMode", true},
		{ "SupportsTranslucentBlendMode", true},
		{ "SupportsDynamicBlendMode", true},
		{ "SupportsCustomBlendMode", true}
	};
	public static string Code => @"
return ShadingModelStandard::Shade( m );";
}