Package renderer.pipeline
Class NearClip
- java.lang.Object
-
- renderer.pipeline.NearClip
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebugstatic booleandoNearClipping
-
-
-
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 aModelthat containsPrimitives that have been transformed into camera space.If a transformed
Primitivecrosses 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
Primitiveis completely in the camera side of the near plane, then drop thatPrimitivefrom theModel's list of primitives.Return a
Modelfor which everyPrimitiveis completely on the far side of the camera's near plane.
-
-