UNPKG

nanogl-gltf

Version:
22 lines (21 loc) 673 B
import GltfTypes from '../types/GltfTypes'; /** * The Asset element is the simpler, it only contains metadata about the glTF asset. */ export default class Asset { constructor() { this.gltftype = GltfTypes.ASSET; } /** * Parse the Asset data, only getting metadata from the glTF data and storing it in this object. * @param gltfLoader GLTFLoader to use, unused here * @param data Data to parse */ parse(gltfLoader, data) { this.version = data.version; this.copyright = data.copyright; this.generator = data.generator; this.minVersion = data.minVersion; return Promise.resolve(); } }