@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
18 lines (17 loc) • 526 B
TypeScript
import { WebGLRenderTarget, MeshBasicMaterial, Texture } from 'three';
export interface BlurMaterial extends MeshBasicMaterial {
uniforms: {
previousLightMap: {
value: Texture | null;
};
pixelOffset: {
value: number;
};
};
}
export interface BlurMatOptions {
res: number;
lightMap: WebGLRenderTarget;
}
export declare function setBlurMaterial(mat: BlurMaterial, options: BlurMatOptions): void;
export declare function createBlurMaterial(): BlurMaterial;