This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
namespace glTFLoader.Schema | |
{ | |
public class MeshPrimitive : GLTFChildOfRootProperty | |
{ | |
private Dictionary<string, gltfId> _attributes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void NormalizeMatrix(ref Matrix4x4 xform) | |
{ | |
var vx = new Vector3(xform.M11, xform.M12, xform.M13); | |
var vy = new Vector3(xform.M21, xform.M22, xform.M23); | |
var vz = new Vector3(xform.M31, xform.M32, xform.M33); | |
var lx = vx.Length(); | |
var ly = vy.Length(); | |
var lz = vz.Length(); |