de.grogra.ray2.radiosity
public class GroupListBuilder extends java.lang.Object
| Constructor and Description |
|---|
GroupListBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Shader shader,
Vector3d[] vertices)
Converts a list of vertices into a patch group.
|
void |
add(Shader shader,
Vector3d[] vertices,
Color3f emitted)
Converts a list of vertices into a patch group.
|
void |
add(Vector3d[] vertices,
Color3f emitted,
boolean visible)
Converts a list of vertices into a patch group.
|
java.util.Vector<PatchGroup> |
getGroups()
Returns a list of patch groups.
|
public void add(Shader shader, Vector3d[] vertices)
shader - a surface shader.vertices - a list of vertices.public void add(Shader shader, Vector3d[] vertices, Color3f emitted)
shader - a surface shader.vertices - a list of vertices.emitted - the emitted color.public void add(Vector3d[] vertices, Color3f emitted, boolean visible)
vertices - a list of vertices.emitted - the emitted color.visible - if false, the patch group is not visiblepublic java.util.Vector<PatchGroup> getGroups()