import * as THREE from "three" ; import { FontCatalog } from "../rendering/FontCatalog" ; import { SdfTextMaterial } from "../rendering/TextMaterials" ; /**
 * Material parameters passed on [[SdfTextMaterial]] creation when using the `
 * `createSdfTextMaterial` helper function.
 */ export interface SdfTextMaterialParameters { fontCatalog : FontCatalog ; rendererCapabilities : THREE . WebGLCapabilities ; isBackground ? : boolean ; vertexSource ? : string ; fragmentSource ? : string ; } param params returns export function createSdfTextMaterial ( params ) { return new SdfTextMaterial ( { texture : params . fontCatalog . texture , textureSize : params . fontCatalog . textureSize , size : params . fontCatalog . size , distanceRange : params . fontCatalog . distanceRange , isMsdf : params . fontCatalog . type === "msdf" , isBackground : params . isBackground === true , vertexSource : params . vertexSource , fragmentSource : params . fragmentSource , rendererCapabilities : params . rendererCapabilities } ) ; }