pub fn project_to_sc<T: Float + FloatOps<T>>(
p: Vec3<T>,
view_projection: Mat4<T>,
viewport: Vec2<T>,
) -> Vec3<T>Expand description
returns the 2D screen coordinate of 3D point p projected with view_projection, performing homogenous divide and viewport correction
assumes screen coordinates are vup in the y-axis y.0 = bottom y.height = top