Пример #1
0
        // Token: 0x0600036F RID: 879 RVA: 0x0001E744 File Offset: 0x0001C944
        public static List <ACCTexture> Load(Material mate, ShaderType type1)
        {
            if (type1 == null)
            {
                type1 = ShaderType.Resolve(mate.shader.name);
            }
            List <ACCTexture> list = new List <ACCTexture>(type1.texProps.Length);

            list.AddRange(from texProp in type1.texProps
                          select ACCTexture.Create(mate, texProp, type1) into tex
                          where tex != null
                          select tex);
            return(list);
        }
Пример #2
0
        public static List <ACCTexture> Load(Material mate, ShaderType type1)
        {
            if (type1 == null)
            {
                type1 = ShaderType.Resolve(mate.shader.name);
            }

            var ret = new List <ACCTexture>(type1.texProps.Length);

            ret.AddRange(
                type1.texProps.Select(texProp => ACCTexture.Create(mate, texProp, type1))
                .Where(tex => tex != null));
            return(ret);
        }
Пример #3
0
        public static List <ACCTexture> Load(Material mate, ShaderType type)
        {
            if (type == null)
            {
                type = ShaderType.Resolve(mate.shader.name);
            }

            var ret = new List <ACCTexture>(type.texProps.Length);

            foreach (var texProp in type.texProps)
            {
                var tex = ACCTexture.Create(mate, texProp, type);
                if (tex != null)
                {
                    ret.Add(tex);
                }
            }
            return(ret);
        }