public static IEnumerable <string> GetSubshaderTags(this ShapesBlendMode blendMode) { yield return((ShaderTag)("IgnoreProjector", "True")); yield return((ShaderTag)("Queue", blendMode.Queue())); yield return((ShaderTag)("RenderType", blendMode.RenderType())); yield return((ShaderTag)("DisableBatching", "True")); }
public static IEnumerable <string> GetSubshaderTags(this ShapesBlendMode blendMode) { string Tag(string key, string value) => $"\"{key}\" = \"{value}\""; yield return(Tag("IgnoreProjector", "True")); yield return(Tag("Queue", blendMode.Queue())); yield return(Tag("RenderType", blendMode.RenderType())); yield return(Tag("DisableBatching", "True")); }