The bounding box of the grid.
Gets the color of a vertex.
Gets the color of a vertex. Typically, the color will be Color.BLACK unless the grid has been shaded.
the U-index of the vertex
the V-index of the vertex
the color at the UV index
Gets the world-space normal of a vertex.
Gets the world-space normal of a vertex.
the U-index of the vertex
the V-index of the vertex
the normal at the UV index
Gets the UV coordinate of a vertex.
Gets the UV coordinate of a vertex.
the U-index of the vertex
the V-index of the vertex
the UV coordinate at the UV index
Gets the world-space coordinate of a vertex.
Gets the world-space coordinate of a vertex.
the U-index of the vertex
the V-index of the vertex
the vertex at the UV index
Determines if the current micropolygon grid can be split and, if so, on which axis.
Determines if the current micropolygon grid can be split and, if so, on which axis. Before calling this function, the grid must be projected into screen space. If not, then the behavior of this function is indeterminate.
None if the grid isn't splittable; Some[SplitDirection] if the grid should be split on the given direction
Determines if the current micropolygon grid is visible.
Determines if the current micropolygon grid is visible. This will also clip objects between the camera and the near plane.
the visibility of the grid
Helper function to calculate dicing and shading parameters for the original surface for use further down in the pipeline.
Helper function to calculate dicing and shading parameters for the original surface for use further down in the pipeline.
the pipeline info
Projects the grid onto the screen.
Projects the grid onto the screen. Note that, in the projected grid, the vertex will have three components: x and y are the screen coordinates, and z is the z-depth for z-buffer calculations.
Rasterizes the projected micropolygon grid into an image buffer and z-buffer by busting it into individual micropolygons.
Rasterizes the projected micropolygon grid into an image buffer and z-buffer by busting it into individual micropolygons.
the image buffer to rasterize with
the z-buffer to rasterize with
Performs shading routines on the micropolygon grid and returns a new grid.
Performs shading routines on the micropolygon grid and returns a new grid. The grid will be displaced and colored. Normals will be recalculated after displacement.
the projection from world coordinates to the eye
whether to only displace the grid without calculating colors
a new micropolygon grid
Helper function to perform a split of the original surface.
Helper function to perform a split of the original surface.
the direction to split
the split surfaces