public SSSkeletalMeshRuntime(SSSkeletalMesh mesh, SSSkeletalHierarchyRuntime hierarchy) { _hierarchy = hierarchy; _vertices = new SSSkeletalVertexRuntime[mesh.vertices.Length]; for (int v = 0; v < mesh.vertices.Length; ++v) { _vertices [v] = new SSSkeletalVertexRuntime (mesh.vertices [v]); } _weights = new SSSkeletalWeightRuntime[mesh.weights.Length]; for (int w = 0; w < mesh.weights.Length; ++w) { _weights [w] = new SSSkeletalWeightRuntime (mesh.weights [w]); } _triangleIndices = mesh.triangleIndices; _preComputeNormals (); }
public SSSkeletalMeshRuntime(SSSkeletalMesh mesh, SSSkeletalHierarchyRuntime hierarchy) { _hierarchy = hierarchy; _vertices = new SSSkeletalVertexRuntime[mesh.vertices.Length]; for (int v = 0; v < mesh.vertices.Length; ++v) { _vertices [v] = new SSSkeletalVertexRuntime(mesh.vertices [v]); } _weights = new SSSkeletalWeightRuntime[mesh.weights.Length]; for (int w = 0; w < mesh.weights.Length; ++w) { _weights [w] = new SSSkeletalWeightRuntime(mesh.weights [w]); } _triangleIndices = mesh.triangleIndices; _preComputeNormals(); }