Package renderer.pipeline
Class NearClip_Point
- java.lang.Object
-
- renderer.pipeline.NearClip_Point
-
public class NearClip_Point extends Object
Clip in camera space anyPoint
that crosses the camera's near clipping planez = -near
.
-
-
Method Detail
-
clip
public static Optional<Primitive> clip(Model model, Point pt, Camera camera)
If theVertex
used by thePoint
is on the camera side of the near plane, then return an emptyOptional
object to indicate that thePoint
should be discarded from the model'sPrimitive
list.If the
Vertex
used by thePoint
is on the far side of the near plane, then return thePoint
wrapped in anOptional
object.
-
-