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

Static helper declaring an Unlit shading model for a shader graph editor. It defines a dictionary of supported feature flags and a small string 'Code' that returns albedo and opacity as a float4.

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

		{ "SupportsOpaqueBlendMode", true},
		{ "SupportsMaskedBlendMode", true},
		{ "SupportsTranslucentBlendMode", true},
		{ "SupportsDynamicBlendMode", true},
		{ "SupportsCustomBlendMode", true}
	};
	public static string Code => @"
return float4( m.Albedo, m.Opacity );";
}