UNPKG

@xeokit/xeokit-convert

Version:

JavaScript utilities to create .XKT files

75 lines (74 loc) 1.79 kB
/** * A set of textures shared by {@link XKTMesh}es. * * * Created by {@link XKTModel#createTextureSet} * * Registered in {@link XKTMesh#material}, {@link XKTModel#materials} and {@link XKTModel#.textureSetsList} * * @class XKTMetalRoughMaterial */ export class XKTTextureSet { /** * @private */ private constructor(); /** * Unique ID of this XKTTextureSet in {@link XKTModel#materials}. * * @type {Number} */ textureSetId: number; /** * Index of this XKTTexture in {@link XKTModel#texturesList}; * * @type {Number} */ textureSetIndex: number; /** * Identifies the material type. * * @type {Number} */ materialType: number; /** * Index of this XKTTextureSet in {@link XKTModel#meshesList}; * * @type {Number} */ materialIndex: number; /** * The number of {@link XKTMesh}s that reference this XKTTextureSet. * * @type {Number} */ numInstances: number; /** * RGBA {@link XKTTexture} containing base color in RGB and opacity in A. * * @type {XKTTexture} */ colorTexture: XKTTexture; /** * RGBA {@link XKTTexture} containing metallic and roughness factors in R and G. * * @type {XKTTexture} */ metallicRoughnessTexture: XKTTexture; /** * RGBA {@link XKTTexture} with surface normals in RGB. * * @type {XKTTexture} */ normalsTexture: XKTTexture; /** * RGBA {@link XKTTexture} with emissive color in RGB. * * @type {XKTTexture} */ emissiveTexture: XKTTexture; /** * RGBA {@link XKTTexture} with ambient occlusion factors in RGB. * * @type {XKTTexture} */ occlusionTexture: XKTTexture; }