Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Jul 5, 2024
1 parent 89cad4c commit ac9973a
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3188,6 +3188,37 @@ declare module "postprocessing" {

export type BlurPass = KawaseBlurPass;

/**
* A blur pass that produces a wide blur by downsampling and upsampling the input over multiple MIP levels.
*
* Based on an article by Fabrice Piquet:
* https://www.froyok.fr/blog/2021-12-ue4-custom-bloom/
*/
export class MipmapBlurPass extends Pass {

/**
* A texture that contains the blurred result.
*
* @type {Texture}
*/
get texture(): Texture;
/**
* The MIP levels. Default is 8.
*
* @type {Number}
*/
get levels(): number;
set levels(value: number);
/**
* The blur radius. Default is 0.85.
*
* @type {Number}
*/
get radius(): number;
set radius(value: number);

}

/**
* A pass that disables the stencil test.
*/
Expand Down Expand Up @@ -5203,14 +5234,24 @@ declare module "postprocessing" {
* This pass can be disabled to skip luminance filtering.
*
* @type {LuminancePass}
* @readonly
*/
luminancePass: LuminancePass;
readonly luminancePass: LuminancePass;
/**
* A blur pass.
*
* @type {KawaseBlurPass}
* @readonly
* @deprecated Use mipmapBlurPass instead.
*/
blurPass: KawaseBlurPass;
readonly blurPass: KawaseBlurPass;
/**
* A mipmap blur pass.
*
* @type {MipmapBlurPass}
* @readonly
*/
readonly mipmapBlurPass: MipmapBlurPass;
/**
* A texture that contains the intermediate result of this effect.
*
Expand Down

0 comments on commit ac9973a

Please sign in to comment.