Original Post
So I need I math formula that does this
But with a 3D normal. basically I need it for terrain it needs to be based on a number which when changed also changes the terrain like a seed value. and it needs to return a single value which is the distance form the center of the planet form the x y and z coordinates of the normal. And I am sorry for putting this here I know it should go in the math part of the forum but I was not thinking how mathematic my question was until after I already typed it now I don't fill like retyping it so if you need to move it be my guest.
But with a 3D normal. basically I need it for terrain it needs to be based on a number which when changed also changes the terrain like a seed value. and it needs to return a single value which is the distance form the center of the planet form the x y and z coordinates of the normal. And I am sorry for putting this here I know it should go in the math part of the forum but I was not thinking how mathematic my question was until after I already typed it now I don't fill like retyping it so if you need to move it be my guest.