How to create random blocky blurred boxes to create 'low quality youtube video' post process effect?

You need to take the UV, and quantize it. Multiply by 200, round, divide by 200 again, use that to sample the input (assuming input is in 0 … 1 range, and you want to split screen in 200 tiles across.)

If MIP mapping/filtering is on, this will unfortunately generate bad gradients, so you have to forward the gradients as calculated by the original UV coordinate set.

1 Like