tfg.rendering.opengl.math.clip_to_ndc

Transforms points from clip to normalized device coordinates (ndc).

Note:

In the following, A1 to An are optional batch dimensions.

point_clip_space A tensor of shape [A1, ..., An, 4], where the last dimension represents points in clip space.
name A name for this op. Defaults to 'clip_to_ndc'.

ValueError If point_clip_space is not of size 4 in its last dimension.

A tensor of shape [A1, ..., An, 3], containing point_clip_space in normalized device coordinates.