UNPKG

nanogl-gltf

Version:
22 lines (21 loc) 909 B
import GltfTypes from "../types/GltfTypes"; import GltfLoader from "../io/GltfLoader"; import Gltf2 from "../types/Gltf2"; import { BaseAccessor } from "./Accessor"; import { IElement } from "../types/Elements"; /** * The AccessorSparseValues element is an Accessor that contains the new values of the vertices that are sparse. */ export default class AccessorSparseValues extends BaseAccessor implements IElement { readonly gltftype: GltfTypes.ACCESSOR_SPARSE_VALUES; name: undefined | string; extras: any; /** * Parse the AccessorSparseValues data, load the BufferView element and store only the part that is needed in _array attribute. * * Is async as it needs to wait for the BufferView to be created. * @param gltfLoader GLTFLoader to use * @param data Data to parse */ parse(gltfLoader: GltfLoader, data: Gltf2.IAccessorSparseValues): Promise<any>; }