UNPKG

nanogl-gltf

Version:
17 lines (16 loc) 718 B
import Gltf2 from '../types/Gltf2'; import GltfLoader from '../io/GltfLoader'; import GltfTypes from '../types/GltfTypes'; import { IElement } from '../types/Elements'; import { ITextureInfo, BaseTextureInfo } from './TextureInfo'; /** * The NormalTextureInfo element is a BaseTextureInfo but with scale attribute to manage the normal vectors scale. */ export default class NormalTextureInfo extends BaseTextureInfo implements IElement, ITextureInfo { readonly gltftype: GltfTypes.NORMAL_TEXTURE_INFO; /** * Scalar multiplier applied to each normal vector of the texture. Default to 1 */ scale: number; parse(gltfLoader: GltfLoader, data: Gltf2.IMaterialNormalTextureInfo): Promise<any>; }