fn compute_warping_parameter_perspective<F: Float + FloatConst>(
    gamma: F,
    near_plane: F,
    fov: F,
    aspect: F,
) -> F
Expand description

Compute a near-optimal warping parameter that falls off quickly enough when the warp angle goes past the minimum field of view angle, for perspective projections.

For F_p (perspective warping) and view fov angle θ,the parameters are:

γ_a = θ / 3 γ_b = θ γ_c = θ + 0.3(90 - θ)

η_b = -0.2 η_c = 0

See compute_warping_parameter.