@types/three
Version:
TypeScript definitions for three
45 lines (41 loc) • 947 B
TypeScript
import { IUniform } from "three";
export interface BokehShaderUniforms {
textureWidth: IUniform;
textureHeight: IUniform;
focalDepth: IUniform;
focalLength: IUniform;
fstop: IUniform;
tColor: IUniform;
tDepth: IUniform;
maxblur: IUniform;
showFocus: IUniform;
manualdof: IUniform;
vignetting: IUniform;
depthblur: IUniform;
threshold: IUniform;
gain: IUniform;
bias: IUniform;
fringe: IUniform;
znear: IUniform;
zfar: IUniform;
noise: IUniform;
dithering: IUniform;
pentagon: IUniform;
shaderFocus: IUniform;
focusCoords: IUniform;
}
export const BokehShader: {
name: string;
uniforms: BokehShaderUniforms;
vertexShader: string;
fragmentShader: string;
};
export const BokehDepthShader: {
name: string;
uniforms: {
mNear: IUniform;
mFar: IUniform;
};
vertexShader: string;
fragmentShader: string;
};