Film Grain
The Film Grain effect simulates the random optical texture of photographic film, usually caused by small particles being present on the physical film.
Using Film Grain
Film Grain uses the Volume framework, so to enable and modify Film Grain properties, you must add a Film Grain override to a Volume in your Scene. To add Film Grain to a Volume:
- In the Scene or Hierarchy view, select a GameObject that contains a Volume component to view it in the Inspector.
- In the Inspector, navigate to Add Override > Post-processing and click on Film Grain. HDRP now applies Film Grain to any Camera this Volume affects.
API
To access and control this override at runtime, use the Volume scripting API. Because of how the Volume system works, you edit properties in a different way to standard Unity components. There are also other nuances to be aware of too, such as each property has an overrideState. This indicates to the Volume system whether to use the property value you set, or use the default value stored in the Volume Profile. For information on how to use the API correctly, see Volume scripting API.
Properties
Property | Description |
---|---|
Type | Use the drop-down to select the type of grain to use. You can select from a list of presets that HDRP includes, or select Custom to provide your own grain Texture. |
Texture | Assign a Texture that this effect uses as a custom grain Texture.This property is only available when Type is set to Custom. |
Intensity | Use the slider to set the strength of the Film Grain effect. |
Response | Use the slider to set the noisiness response curve. The higher you set this value, the less noise there is in brighter areas. |