@google/model-viewer
Version:
Easily display interactive 3D models on the web and in AR!
28 lines (27 loc) • 1.34 kB
TypeScript
import { MeshStandardMaterial } from 'three';
import { GLTF, PBRMetallicRoughness as GLTFPBRMetallicRoughness } from '../../three-components/gltf-instance/gltf-2.0.js';
import { RGBA } from './api.js';
import { PBRMetallicRoughness as PBRMetallicRoughnessInterface } from './api.js';
import { TextureInfo } from './texture-info.js';
import { ThreeDOMElement } from './three-dom-element.js';
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]();
constructor(onUpdate: () => void, gltf: GLTF, pbrMetallicRoughness: GLTFPBRMetallicRoughness, correlatedMaterials: Set<MeshStandardMaterial>);
get baseColorFactor(): RGBA;
get metallicFactor(): number;
get roughnessFactor(): number;
get baseColorTexture(): TextureInfo | null;
get metallicRoughnessTexture(): TextureInfo | null;
setBaseColorFactor(rgba: RGBA): void;
setMetallicFactor(value: number): void;
setRoughnessFactor(value: number): void;
}
export {};