diff --git a/Levels/ObjectSetups/Level1.xml b/Levels/ObjectSetups/Level1.xml index d086dfc..df8d048 100644 --- a/Levels/ObjectSetups/Level1.xml +++ b/Levels/ObjectSetups/Level1.xml @@ -4400,6 +4400,14 @@ 0.2 + + seamlessTerrain.png + 0.1 + 0.8 + 0.2 + 3.0 + + skydome.png diff --git a/converter/converter.cc b/converter/converter.cc index 2bf19a1..d11c6d5 100644 --- a/converter/converter.cc +++ b/converter/converter.cc @@ -101,6 +101,25 @@ Converter::Converter(std::string level){ doc->InsertEndChild(fogColour); doc->InsertEndChild(directionalLight); + //Create global terrain Element + XMLElement* terrain = doc->NewElement("terrain"); + XMLElement* terrainTexture = doc->NewElement("texture"); + XMLElement* terrainAmbientFactor = doc->NewElement("ambientFactor"); + XMLElement* terrainDiffuseFactor = doc->NewElement("diffuseFactor"); + XMLElement* terrainSpecularFactor = doc->NewElement("specularFactor"); + XMLElement* terrainShininess = doc->NewElement("shininess"); + terrainTexture->SetText("seamlessTerrain.png"); + terrainAmbientFactor->SetText("0.1"); + terrainDiffuseFactor->SetText("0.8"); + terrainSpecularFactor->SetText("0.2"); + terrainShininess->SetText("3.0"); + terrain->InsertEndChild(terrainTexture); + terrain->InsertEndChild(terrainAmbientFactor); + terrain->InsertEndChild(terrainDiffuseFactor); + terrain->InsertEndChild(terrainSpecularFactor); + terrain->InsertEndChild(terrainShininess); + doc->InsertEndChild(terrain); + //Create global skydome Element XMLElement* skydome = doc->NewElement("skydome"); XMLElement* skydomeTexture = doc->NewElement("texture");