Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultMesh"/> class.
        /// </summary>

        public TBNMesh(DefaultMesh mesh)
        {
            Position.AddRange(mesh.Position);
            Normal.AddRange(mesh.Normal);
            TexCoord.AddRange(mesh.TexCoord);
            IDs.AddRange(mesh.IDs);

            Tangent   = AddAttribute <Vector3>(TangentName);
            Bitangent = AddAttribute <Vector3>(BitangentName);
            CalcTangentsAndBitangents();
        }