Package renderer.pipeline
Class NearClip
- java.lang.Object
-
- renderer.pipeline.NearClip
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
debug
static boolean
doNearClipping
-
-
-
Field Detail
-
doNearClipping
public static boolean doNearClipping
-
debug
public static boolean debug
-
-
Method Detail
-
clip
public static Model clip(Model model, Camera camera)
Start with aModel
that containsPrimitive
s that have been transformed into camera space.If a transformed
Primitive
crosses the camera's near plane, then replace thatPrimitive
, in theModel
's list of primitives, with one that has been clipped so that it lies completely in the far side of the camera's near plane (the side of the near plane away from the camera).If a transformed
Primitive
is completely in the camera side of the near plane, then drop thatPrimitive
from theModel
's list of primitives.Return a
Model
for which everyPrimitive
is completely on the far side of the camera's near plane.
-
-