How to solve this problem with shaders?

How to solve this problem with shaders?

Use a custom material shader to compute it on GPU :+1: