Added terrain parameters to the xml.
This commit is contained in:
parent
d50f624004
commit
8be350c713
@ -4400,6 +4400,14 @@
|
|||||||
<intensity>0.2</intensity>
|
<intensity>0.2</intensity>
|
||||||
</directionalLight>
|
</directionalLight>
|
||||||
|
|
||||||
|
<terrain>
|
||||||
|
<texture>seamlessTerrain.png</texture>
|
||||||
|
<ambientFactor>0.1</ambientFactor>
|
||||||
|
<diffuseFactor>0.8</diffuseFactor>
|
||||||
|
<specularFactor>0.2</specularFactor>
|
||||||
|
<shininess>3.0</shininess>
|
||||||
|
</terrain>
|
||||||
|
|
||||||
<skydome>
|
<skydome>
|
||||||
<texture>skydome.png</texture>
|
<texture>skydome.png</texture>
|
||||||
</skydome>
|
</skydome>
|
||||||
|
@ -101,6 +101,25 @@ Converter::Converter(std::string level){
|
|||||||
doc->InsertEndChild(fogColour);
|
doc->InsertEndChild(fogColour);
|
||||||
doc->InsertEndChild(directionalLight);
|
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
|
//Create global skydome Element
|
||||||
XMLElement* skydome = doc->NewElement("skydome");
|
XMLElement* skydome = doc->NewElement("skydome");
|
||||||
XMLElement* skydomeTexture = doc->NewElement("texture");
|
XMLElement* skydomeTexture = doc->NewElement("texture");
|
||||||
|
Loading…
Reference in New Issue
Block a user