コード例 #1
0
        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"));
        }
コード例 #2
0
        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"));
        }