import { Texture } from 'pixi.js'; import type { BaseMaterialOptions, BaseUniforms } from './BaseMaterial'; import { BaseMaterial } from './BaseMaterial'; export interface PhongMaterialOptions extends BaseMaterialOptions { /** The specular color */ specular?: number; /** Amount of shine from the material, value between 0-1 */ gloss?: number; /** The specular map texture */ specularMap?: Texture; /** The environment map cube texture ** CubeTexture isn't exported from pixi, so this is temporary */ environmentMap?: Texture; /** A value that will make material 100% reflective if 1 and 0% reflective if 0 */ metallic?: number; /** A map that will make material 100% reflective if a pixel is 0xffffff and 0% reflective if pixel is 0x000000 */ metallicMap?: Texture; uniforms?: PhongUniforms; } /** * the possible uniforms that this shader may added to the shader */ export interface PhongUniforms extends BaseUniforms { uEnvironmentMap?: Texture; uSpecularGloss?: number[]; uSpecularMap?: Texture; } export declare class PhongMaterial extends BaseMaterial { constructor(options?: PhongMaterialOptions); set specular(value: number); get specular(): number; set gloss(value: number); get gloss(): number; set specularMap(value: Texture); get specularMap(): Texture; set environmentMap(value: Texture); get environmentMap(): Texture; } //# sourceMappingURL=PhongMaterial.d.ts.map