@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
43 lines (42 loc) • 2.2 kB
TypeScript
/**
* Creates a light map
*
*
*/
import { TypedCopNode } from './_Base';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
import { CopType } from '../../poly/registers/nodes/types/Cop';
declare class LightMapCopParamConfig extends NodeParamsConfig {
/** @param click to update shadow, when mode is manual */
update: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BUTTON>;
/** @param defines if the shader is rendered via the same camera used to render the scene */
useCameraRenderer: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>;
/** @param shadow resolution */
lightMapRes: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>;
/** @param iterations */
iterations: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>;
/** @param blendWindow */
/** @param blurEdges */
blur: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>;
/** @param blurAmount */
blurAmount: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>;
/** @param lightPositionVariation */
lightRadius: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>;
objectsMask: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.STRING>;
lightsMask: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.STRING>;
}
export declare class LightMapCopNode extends TypedCopNode<LightMapCopParamConfig> {
paramsConfig: LightMapCopParamConfig;
static type(): Readonly<CopType.LIGHT_MAP>;
private lightMapController;
private _includedObjects;
private _includedLights;
private _dataTextureController;
private _rendererController;
cook(): Promise<void>;
private _createLightMapController;
private _render;
static PARAM_CALLBACK_updateManual(node: LightMapCopNode): void;
private _updateObjectsAndLightsList;
}
export {};