Example #1
0
        public static Source CreateJoints(string geoName, string[] values)
        {
            ulong     stride     = 1;
            NameArray sourceItem = new NameArray(geoName + "-Joints-array", values);
            Source    source     = new Source(string.Concat(geoName, "-Joints"), sourceItem,
                                              new Source.TechniqueCommon(new Accessor(sourceItem.count / stride, string.Concat("#", geoName, "-Joints-array"), (ulong)0, stride, new Param[] { new Param("name") })));

            return(source);
        }
Example #2
0
 public Source(string id, NameArray item, TechniqueCommon techniqueCommon)
     : this(id, techniqueCommon)
 {
     this.array = item;
 }