Id like to a cartesian to polar distortion, only formular I’ve found is from filter factor,

radius=sqrt(x*x+y*y)

angle=atan(y/x)

then rgb = rad(angle,(max radius-radius),z)

So is there a function like rad in hlsl?

Im not at home at the moment so havent got my reference books!

Its not urgent though, just wondered if any one had tried it yet!

Cheers

Cat