UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

52 lines (51 loc) 3.27 kB
import { Constructor } from '../../../../types/GlobalTypes'; import { TypedMatNode } from '../_Base'; import { BaseTextureMapController } from './_BaseTextureController'; import { NodeParamsConfig } from '../../utils/params/ParamsConfig'; import { MeshStandardMaterial, MeshPhongMaterial, MeshPhysicalMaterial, MeshMatcapMaterial, MeshNormalMaterial, MeshToonMaterial } from 'three'; import { MaterialTexturesRecord, SetParamsTextureNodesRecord } from './_BaseController'; export declare function BumpMapParamConfig<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { /** @param toggle if you want to use a bump map */ useBumpMap: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.BOOLEAN>; /** @param specify the bump map COP node */ bumpMap: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.NODE_PATH>; /** @param bump scale */ bumpScale: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.FLOAT>; /** @param bump bias */ bumpBias: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.FLOAT>; }; } & TBase; type TextureBumpMapControllerCurrentMaterial = MeshMatcapMaterial | MeshNormalMaterial | MeshPhysicalMaterial | MeshStandardMaterial | MeshToonMaterial | MeshPhongMaterial; declare const TextureBumpMapParamsConfig_base: { new (...args: any[]): { /** @param toggle if you want to use a bump map */ useBumpMap: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.BOOLEAN>; /** @param specify the bump map COP node */ bumpMap: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.NODE_PATH>; /** @param bump scale */ bumpScale: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.FLOAT>; /** @param bump bias */ bumpBias: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../index_all").ParamType.FLOAT>; }; } & typeof NodeParamsConfig; declare class TextureBumpMapParamsConfig extends TextureBumpMapParamsConfig_base { } export interface TextureBumpMapControllers { bumpMap: TextureBumpMapController; } declare abstract class TextureBumpMapMatNode extends TypedMatNode<TextureBumpMapControllerCurrentMaterial, TextureBumpMapParamsConfig> { controllers: TextureBumpMapControllers; material(): Promise<TextureBumpMapControllerCurrentMaterial | undefined>; } export declare class TextureBumpMapController extends BaseTextureMapController { protected node: TextureBumpMapMatNode; constructor(node: TextureBumpMapMatNode); initializeNode(): void; static update(node: TextureBumpMapMatNode): Promise<void>; update(): Promise<void>; updateMaterial(material: TextureBumpMapControllerCurrentMaterial): Promise<void>; getTextures(material: TextureBumpMapControllerCurrentMaterial, record: MaterialTexturesRecord): void; setParamsFromMaterial(material: TextureBumpMapControllerCurrentMaterial, record: SetParamsTextureNodesRecord): void; } export {};