de.grogra.ray2.radiosity
public class ZBuffer extends java.lang.Object
| Constructor and Description |
|---|
ZBuffer(boolean isTop)
Creates a new z-buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillFormFactors(java.util.Map<SubPatch,FormFactor> formFactors,
int side)
Fills the given form factor map with form factors.
|
ZPixel |
getZPixel(int x,
int y)
Returns a pixel from this buffer.
|
void |
insert(SubPatch p,
SubPatch originalPatch)
Inserts a new patch into the buffer.
|
public ZBuffer(boolean isTop)
isTop - true, if this is the top side of a hemicube.public void fillFormFactors(java.util.Map<SubPatch,FormFactor> formFactors, int side)
formFactors - the form factor array (in/out parameter)side - the side of the cube.public ZPixel getZPixel(int x, int y)
x - the x-coordinate.y - the y-coordinate.