<library>
	<plugins>
		<plugin name="genmesh">crystalspace.mesh.loader.genmesh</plugin>
		<plugin name="genmeshfact">crystalspace.mesh.loader.factory.genmesh</plugin>
	</plugins>

	<shaders>
		<shader>
			<file>/shader/sky/clouds2.xml</file>
		</shader>
	</shaders>

	<textures>
		<texture name="perlin0.png">
			<file>/lib/sky/perlin0.png</file>
		</texture>
		<texture name="perlin1.png">
			<file>/lib/sky/perlin1.png</file>
		</texture>
		<texture name="perlin2.png">
			<file>/lib/sky/perlin2.png</file>
		</texture>
		<texture name="perlin3.png">
			<file>/lib/sky/perlin3.png</file>
		</texture>
	</textures>

	<materials>
		<material name="clouds">
			<texture>perlin0.png</texture>
      <shader type="depthwrite">*null</shader>
			<shader type="standard">clouds2</shader>
			<shadervar type="texture" name="noise2">perlin2.png</shadervar>
			<shadervar type="texture" name="noise3">perlin3.png</shadervar>
			<shadervar type="texture" name="noise1">perlin1.png</shadervar>
			<shadervar type="vector3" name="cloudcol">0.79,0.79,0.79</shadervar>
			<shadervar type="vector2" name="mnvars">1.79999995232,0.20000000298</shadervar>
			<shadervar type="vector2" name="specular">0.0,0.3800000011921</shadervar>
			<shadervar type="vector2" name="control2">0.20000000298,0.699999988079</shadervar>
			<shadervar type="vector2" name="control3">0.20000000298,0.20000000298</shadervar>
			<shadervar type="vector2" name="control1">0.20000000298,0.20000000298</shadervar>
			<shadervar type="vector3" name="skycol">0.85,0.85,0.85</shadervar>
			<shadervar type="vector2" name="windvec">0.20000000298,0.300000011921</shadervar>
			
			<shadervar type="float" name="timeOfDay">1</shadervar>
			
		</material>
	</materials>

	<meshfact name="clouddome">
		<plugin>genmeshfact</plugin>
		<params>
			<material>clouds</material>
			<lighting>no</lighting>
			<sphere rimvertices='16' reversed="true" toponly="true">
				<radius y='200' x='2000' z='2000'/>
				<center y='5' x='0' z='0'/>
			</sphere>
			<color red="1" green="1" blue="1" />
		</params>
		<trimesh>
			<id>shadows</id>
		</trimesh>
		<zuse />
		<noshadows />
		<nolighting />
	</meshfact>
</library>
