Sharpness

Sharpens the image by boosting the difference between each pixel and its neighbors. Useful after FXAA/SMAA or a lowered resolutionScale to bring back crisp detail.

import { Sharpness } from '@react-three/postprocessing'
import { BlendFunction } from 'postprocessing'

return (
  <Sharpness
    sharpness={1} // sharpening strength, 0 disables it
    radius={1} // distance to the sampled neighbors in pixels
    blendFunction={BlendFunction.NORMAL} // blend mode
  />
)

Props

NameTypeDefaultDescription
sharpnessNumber1Sharpening strength, 0 disables it.
radiusNumber1Distance to the sampled neighbors in pixels.
blendFunctionBlendFunctionBlendFunction.NORMALThe blend function of this effect.
opacityNumber1The opacity of this effect.