Wrap a Three.js shader so that its output colors are never negative. Negative colors become NaN in the sRGB conversion done by the output pass, which is rendered as garbage by some mobile GPUs (e.g. Mali).
Wrap a Three.js shader so that its output colors are never negative. Negative colors become NaN in the sRGB conversion done by the output pass, which is rendered as garbage by some mobile GPUs (e.g. Mali).