ThreePipe
    Preparing search index...

    Interface MaterialCreator

    Create a new MTLLoader2.MaterialCreator

    Url relative to which textures are loaded

    Set of options on how to construct the materials side: Which side to apply the material FrontSide (default), THREE.BackSide, THREE.DoubleSide wrap: What type of wrapping to apply for textures RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping normalizeRGB: RGBs need to be normalized to 0-1 from 0-255 Default: false, assumed to be already normalized ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's Default: false

    interface MaterialCreator {
        convert(materialsInfo: any): any;
        create(materialName: any): Promise<any>;
        createMaterial_(materialName: any): Promise<any>;
        getAsArray(): Promise<any>;
        getIndex(materialName: any): any;
        getTextureParams(
            value: any,
            matParams: any,
        ): { offset: Vector2; scale: Vector2 };
        loadTexture(
            url: any,
            mapping: any,
            onLoad: any,
            onProgress: any,
            onError: any,
        ): any;
        preload(): Promise<void>;
        setCrossOrigin(value: any): MaterialCreator;
        setManager(value: any): void;
        setMaterials(materialsInfo: any): void;
    }
    Index

    Methods

    • Parameters

      • url: any
      • mapping: any
      • onLoad: any
      • onProgress: any
      • onError: any

      Returns any