public Color3 Intersect(Vector3 direction) { var u = (1 + Math.Atan2(direction.X, -direction.Z) / MathHelper.Pi) / 2; var v = Math.Acos(direction.Y) / MathHelper.Pi; var color = _texture.GetColor((float)u, (float)v); return(color); }