I think this is feasible using float texture, which can be quite useful for high precision simulation.