Method GaussianBlur
GaussianBlur(in CustomPassContext, RTHandle, RTHandle, RTHandle, int, float, int, int, bool)
Gaussian Blur pass.
Declaration
public static void GaussianBlur(in CustomPassContext ctx, RTHandle source, RTHandle destination, RTHandle tempTarget, int sampleCount = 9, float radius = 5, int sourceMip = 0, int destMip = 0, bool downSample = true)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom Pass Context. |
RTHandle | source | Source to use for the gaussian blur. |
RTHandle | destination | Destination buffer of the gaussian blur. |
RTHandle | tempTarget | Temporary render target to provide used internally to swap the result between blur passes. Can be half res if downsample is true. |
int | sampleCount | Number of samples to use for the gaussian blur. A high number will impact performances. |
float | radius | Radius in pixel of the gaussian blur. |
int | sourceMip | Source mip level to sample from. |
int | destMip | Destination mip level to write to. |
bool | downSample | If true, will execute a downsample pass before the blur. It increases the performances of the blur. |
GaussianBlur(in CustomPassContext, RTHandle, RTHandle, RTHandle, Vector4, Vector4, int, float, int, int, bool)
Gaussian Blur pass.
Declaration
public static void GaussianBlur(in CustomPassContext ctx, RTHandle source, RTHandle destination, RTHandle tempTarget, Vector4 sourceScaleBias, Vector4 destScaleBias, int sampleCount = 9, float radius = 5, int sourceMip = 0, int destMip = 0, bool downSample = true)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom Pass Context. |
RTHandle | source | Source to use for the gaussian blur. |
RTHandle | destination | Destination buffer of the gaussian blur. |
RTHandle | tempTarget | Temporary render target to provide used internally to swap the result between blur passes. Can be half res if downsample is true. |
Vector4 | sourceScaleBias | Scale and bias to apply when sampling the source buffer. |
Vector4 | destScaleBias | Scale and bias to apply when writing into the destination buffer. |
int | sampleCount | Number of samples to use for the gaussian blur. A high number will impact performances. |
float | radius | Radius in pixel of the gaussian blur. |
int | sourceMip | Source mip level to sample from. |
int | destMip | Destination mip level to write to. |
bool | downSample | If true, will execute a downsample pass before the blur. It increases the performances of the blur. |