import ComponentBase from "../../component-base/index.js"; import { Vec4 } from "../../../types/data-types.js"; import Indexer from "../../asset/indexer/index.js"; import TextureInfo from "../../texture-info/index.js"; /** * MetallicRoughness - a builder for a GLTF pbrMetallicRoughness object * @see {@link https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#reference-pbrmetallicroughness | GLTF reference} * @hideconstructor */ export default class MetallicRoughness extends ComponentBase<{ baseColorFactor: Vec4; metallicFactor: number; roughnessFactor: number; baseColorTexture: TextureInfo; metallicRoughnessTexture: TextureInfo; }> { baseColourFactor: typeof this.baseColorFactor; constructor(); /** * baseColorFactor - Sets the material's base color factor. * * @param {Vec4} baseColorFactor colour * * @returns {MetallicRoughness} this */ baseColorFactor(baseColorFactor: Vec4): MetallicRoughness; /** * metallicFactor - Sets the material's metallic factor. * * @param {number} metallicFactor * * @returns {MetallicRoughness} this */ metallicFactor(metallicFactor: number): MetallicRoughness; /** * roughnessFactor - Sets the material's roughness factor. * * @param {number} roughnessFactor * * @returns {MetallicRoughness} this */ roughnessFactor(roughnessFactor: number): MetallicRoughness; /** * Sets the material's base color texture. * * @param {TextureInfo} baseColorTexture * @returns {MetallicRoughness} this */ baseColorTexture(baseColorTexture: TextureInfo): MetallicRoughness; /** * Alias of {@link MetallicRoughness#baseColorTexture} */ baseColourTexture(baseColourTexture: TextureInfo): MetallicRoughness; /** * Sets the material's metallic roughness texture. * The metalness values are sampled from the B channel. The roughness values are sampled from the G channel. * These values are linear. If other channels are present (R or A), they are ignored for metallic-roughness * * @param {TextureInfo} metallicRoughnessTexture * @returns {MetallicRoughness} this */ metallicRoughnessTexture(metallicRoughnessTexture: TextureInfo): MetallicRoughness; build(indexer: Indexer): object; }