Class PostProcessUtils
Utility class for post processing effects.
Inheritance
Namespace: UnityEngine.Rendering.Universal
Assembly: solution.dll
Syntax
public static class PostProcessUtils
Methods
ConfigureDithering(PostProcessData, int, int, int, Material)
Configures the blue noise dithering used.
Declaration
public static int ConfigureDithering(PostProcessData data, int index, int cameraPixelWidth, int cameraPixelHeight, Material material)
Parameters
Type | Name | Description |
---|---|---|
PostProcessData | data | The |
int | index | The current array index to the Blue noise textures. |
int | cameraPixelWidth | The camera pixel width. |
int | cameraPixelHeight | The camera pixel height. |
Material | material | The material used with the dithering effect. |
Returns
Type | Description |
---|---|
int | The new array index to the Blue noise textures. |
ConfigureDithering(PostProcessData, int, Camera, Material)
Configures the blue noise dithering used.
Declaration
public static int ConfigureDithering(PostProcessData data, int index, Camera camera, Material material)
Parameters
Type | Name | Description |
---|---|---|
PostProcessData | data | The |
int | index | The current array index to the Blue noise textures. |
Camera | camera | The camera using the dithering effect. |
Material | material | The material used with the dithering effect. |
Returns
Type | Description |
---|---|
int | The new array index to the Blue noise textures. |
ConfigureFilmGrain(PostProcessData, FilmGrain, int, int, Material)
Configures the Film grain shader parameters.
Declaration
public static void ConfigureFilmGrain(PostProcessData data, FilmGrain settings, int cameraPixelWidth, int cameraPixelHeight, Material material)
Parameters
Type | Name | Description |
---|---|---|
PostProcessData | data | The |
FilmGrain | settings | The Film Grain settings. |
int | cameraPixelWidth | The camera pixel width. |
int | cameraPixelHeight | The camera pixel height. |
Material | material | The material used with the dithering effect. |
ConfigureFilmGrain(PostProcessData, FilmGrain, Camera, Material)
Configures the Film grain shader parameters.
Declaration
public static void ConfigureFilmGrain(PostProcessData data, FilmGrain settings, Camera camera, Material material)
Parameters
Type | Name | Description |
---|---|---|
PostProcessData | data | The |
FilmGrain | settings | The Film Grain settings. |
Camera | camera | The camera using the dithering effect. |
Material | material | The material used with the dithering effect. |