Search code examples
swiftmetal

Metal Performance Shader to add Noise


Are there any Metal Performance Shaders that can add Noise to my MTLTexture? - I'm aware of shaders like: MPSImageGaussianBlur, but one to add noise would be excellent!


Solution

  • There are currently no noise filters in MPS. You should file an enhancement Radar with your anticipated use case and the types of noise you'd like to see supported (value, gradient (Perlin), Worley; single octave or fractal; dimensionality (1D, 2D, 3D); static or animated; etc.)