de.grogra.ray2.radiosity
public final class HemiCube extends java.lang.Object
| Constructor and Description |
|---|
HemiCube() |
| Modifier and Type | Method and Description |
|---|---|
static float |
getFormFactor(int side,
int pixX,
int pixY)
Returns the form factor for one hemicube pixel.
|
static int |
getPixelsWide()
Return the number of hemicube pixels.
|
static float |
getWorldWide()
Returns the hemicube size in world coordinates.
|
static void |
init(int cubeWidth)
Initializes the hemicube with the given cube width.
|
static void |
print()
Prints out the hemicube delta form factor for debugging.
|
static void |
setWorldWide(float worldWide)
Sets the hemicube size in world coordinates.
|
public static float getFormFactor(int side,
int pixX,
int pixY)
side - the cube sidepixX - the x-coordinate.pixY - the y-coordinate.public static int getPixelsWide()
public static float getWorldWide()
public static void init(int cubeWidth)
cubeWidth - the cube width.public static void print()
public static void setWorldWide(float worldWide)
worldWide - the hemicube size to set.