UNPKG

@google/model-viewer

Version:

Easily display interactive 3D models on the web and in AR!

28 lines (27 loc) 1.2 kB
import { MeshPhysicalMaterial } from 'three'; import { PBRMetallicRoughness as PBRMetallicRoughnessInterface, RGBA } from './api.js'; import { TextureInfo } from './texture-info.js'; import { ThreeDOMElement } from './three-dom-element.js'; declare const $threeMaterial: unique symbol; declare const $threeMaterials: unique symbol; declare const $baseColorTexture: unique symbol; declare const $metallicRoughnessTexture: unique symbol; /** * PBR material properties facade implementation for Three.js materials */ export declare class PBRMetallicRoughness extends ThreeDOMElement implements PBRMetallicRoughnessInterface { private [$baseColorTexture]; private [$metallicRoughnessTexture]; private get [$threeMaterials](); private get [$threeMaterial](); constructor(onUpdate: () => void, correlatedMaterials: Set<MeshPhysicalMaterial>); get baseColorFactor(): RGBA; get metallicFactor(): number; get roughnessFactor(): number; get baseColorTexture(): TextureInfo; get metallicRoughnessTexture(): TextureInfo; setBaseColorFactor(rgba: RGBA | string): void; setMetallicFactor(value: number): void; setRoughnessFactor(value: number): void; } export {};