Improved precision handling in shaders