Package renderer.pipeline
Class Viewport
- java.lang.Object
-
- renderer.pipeline.Viewport
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelimagePlane2pixelPlane(Model model, FrameBuffer.Viewport viewport)Use the dimensions of aFrameBuffer.Viewportto transform eachVertexfrom the camera's image-plane to the logical pixel-plane.
-
-
-
Method Detail
-
imagePlane2pixelPlane
public static Model imagePlane2pixelPlane(Model model, FrameBuffer.Viewport viewport)
Use the dimensions of aFrameBuffer.Viewportto transform eachVertexfrom the camera's image-plane to the logical pixel-plane.- Parameters:
model-ModelwhoseVertexobjects are in the camera's image-planeviewport- a reference to aFrameBuffer.Viewportin aFrameBuffer- Returns:
- a new
ModelwithVertexobjects in the logical pixel-plane
-
-