public override void Write() { IndentIn(); CommaNL(); if (attributes != null) { attributes.Write(); } CommaNL(); Indent(); jsonWriter.Write("\"indices\": " + GlTF_Writer.accessors.IndexOf(indices) + ",\n"); Indent(); jsonWriter.Write("\"material\": " + materialIndex + ",\n"); Indent(); jsonWriter.Write("\"mode\": " + primitive + "\n"); // semantics IndentOut(); }
public override void Write() { IndentIn(); CommaNL(); if (attributes != null) { attributes.Write(); } CommaNL(); Indent(); jsonWriter.Write("\"indices\": \"" + indices.name + "\",\n"); Indent(); jsonWriter.Write("\"material\": \"" + materialName + "\",\n"); Indent(); jsonWriter.Write("\"mode\": " + primitive + "\n"); // semantics IndentOut(); }