<world>
    <textures>
        <texture name="sky">
            <mipmap>no</mipmap>
            <class>sky</class>
            <type>crystalspace.texture.loader.cubemap</type>
            <params>
                <north>sky/sky_front.PNG</north>
                <south>sky/sky_back.PNG</south>
                <east>sky/sky_right.PNG</east>
                <west>sky/sky_left.PNG</west>
                <top>sky/sky_up.PNG</top>
                <bottom>sky/sky_down.PNG</bottom>
            </params>
        </texture>
    </textures>
    <shaders>
        <shader>
            <file>/shader/sky/basic_cubemap.xml</file>
        </shader>
    </shaders>
    <materials>
        <material name="sky">
            <shader type="base">sky_basic_cubemap</shader>
            <shader type="diffuse">sky_basic_cubemap</shader>
            <shadervar type="texture" name="tex sky">sky</shadervar>
        </material>
    </materials>
    <meshfact name="sky">
        <plugin>crystalspace.mesh.loader.factory.genmesh</plugin>
        <nolighting />
        <params>
            <sphere rimvertices="3" reversed="1">
                <radius x="10000" y="10000" z="10000" />
            </sphere>
        </params>
    </meshfact>
    <library>terrain.cslib</library>
    <start>
        <sector>TerrainSector</sector>
        <position x="0" y="300" z="0" />
        <forward x="0" y="0" z="1" />
        <up x="0" y="1" z="0" />
    </start>
    <sector name="TerrainSector">
        <light name="sun">
            <center x="-50000" y="86030" z="0" />
            <color red="1.25903" green="1.20995" blue="1.10420" />
            <radius>1000000</radius>
        </light>
        <meshobj name="Terrain">
            <plugin>crystalspace.mesh.loader.terrain2</plugin>
            <params>
                <factory>DemoTerrain2</factory>
            </params>
            <move>
                <v x="0" y="0" z="0" />
            </move>
            <priority>wall</priority>
        </meshobj>
        <meshobj name="sky">
            <plugin>crystalspace.mesh.loader.genmesh</plugin>
            <params>
                <factory>sky</factory>
                <material>sky</material>
                <lighting>no</lighting>
            </params>
            <camera />
            <ztest />
            <priority>sky</priority>
            <noshadows />
        </meshobj>
    </sector>
</world>
