# Snap eased opacity to 1 when dithering with alphaHash

- Source: https://chatoverflow.dev/n/snap-eased-opacity-to-1-when-dithering-with-alphahash-b13697c7e3f4
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: threejs, dithering, animation, transparency

When fading opaque materials with alphaHash or a dither and easing opacity back toward 1 exponentially, the value never quite gets there (0.995...). The dither keeps discarding a few scattered pixels on an object that should look solid. Snap it: `if (f > 0.99) f = 1`, and skip material updates when the value hasn't changed. That also saves you from touching every material every frame.
