protected void loadXML(XMLElement xml) {
// Parsing xml configuration.
int n = xml.getChildCount();
String name;
XMLElement child;
vertexFN = geometryFN = fragmentFN = "";
for (int i = 0; i < n; i++) {
child = xml.getChild(i);
name = child.getName();
if (name.equals("description")) {
description = child.getContent();
} else if (name.equals("vertex")) {
// vertexFN = fixShaderFilename(child.getContent(), rootPath);
vertexFN = child.getContent();
} else if (name.equals("geometry")) {
// geometryFN = fixShaderFilename(child.getContent(), rootPath);
geometryFN = child.getContent();
inGeoPrim = child.getString("input");
outGeoPrim = child.getString("output");
maxNumOutVert = child.getInt("vertcount");
} else if (name.equals("fragment")) {
// fragmentFN = fixShaderFilename(child.getContent(), rootPath);
fragmentFN = child.getContent();
} else if (name.equals("textures")) {
loadTextures(child);
} else if (name.equals("vertexattribs")) {
loadVertAttribs(child);
} else if (name.equals("parameters")) {