Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 839 Bytes

readme.md

File metadata and controls

26 lines (17 loc) · 839 Bytes

grain: simulate analog film grain

film grain rendering should be applied on display referred after scaling to the desired output resolution since the method assumes input values between zero and one and the grain size is relative to the pixel size.

this uses a primitive simplex noise and lets you pick the parameters to make it look good.

the standard deviation of the noise is picked based on a slightly skewed distribution depending on the pixel luminance. mid-tones will receive more noise.

example grain

connectors

  • input display referred image normalised between zero and one
  • output the image with film grain applied

parameters

  • size the size of the grain, with respect to pixel size (this is not scale invariant)
  • strength the magnitude of the effect, how much will be added