def viewport_to_screen_space ( framebuffer_size : vec2 , point : vec4 ) -> vec2 : return ( framebuffer_size * point . xy ) / point . w
python half of screen pixels
Transform point in viewport space to screen space .
def viewport_to_screen_space(framebuffer_size: vec2, point: vec4) -> vec2:
    """Transform point in viewport space to screen space."""
    return (framebuffer_size * point.xy) / point.w