Function Camera.projectRayNormal

Returns a normal vector in worldspace, that is the result of projecting a point on the Viewport rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.

Vector3 projectRayNormal (
  const(Vector2) screen_point
) nothrow @nogc const;