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 Model
imagePlane2pixelPlane(Model model, FrameBuffer.Viewport viewport)
Use the dimensions of aFrameBuffer.Viewport
to transform eachVertex
from 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.Viewport
to transform eachVertex
from the camera's image-plane to the logical pixel-plane.- Parameters:
model
-Model
whoseVertex
objects are in the camera's image-planeviewport
- a reference to aFrameBuffer.Viewport
in aFrameBuffer
- Returns:
- a new
Model
withVertex
objects in the logical pixel-plane
-
-