librender: initial (nonfunctional) implementation of near plane clipping