

///////////////////////////////////////////////////////////////////////////////////
/////////			BASE
///////////////////////////////////////////////////////////////////////////////////


textures/testy/svetlo
{
	qer_editorimage textures/testy/svetlo.tga
	q3map_lightimage textures/testy/svetlo.tga
	surfaceparm nodlight
	surfaceparm nomarks
	q3map_surfacelight 5000
	surfaceparm nonsolid

	{
		map textures/testy/svetlo.tga
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc filter
		tcGen lightmap 
	}
	{
		map textures/testy/svetlo.tga
		blendfunc gl_one_minus_dst_color gl_one
	}
}


textures/testy/mriz
{
	qer_editorimage textures/testy/mriz.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/mriz.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/a
{
	qer_editorimage textures/testy/a.TGA
	q3map_lightimage textures/testy/a_blend.TGA
	q3map_surfacelight 2000
	surfaceparm nomarks
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/testy/a.TGA
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/testy/a_blend.TGA
		blendfunc GL_ONE GL_ONE
	}
}

textures/testy/Marilyn
{
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	surfaceparm nonsolid
          {
            clampmap textures/testy/Marilyn.tga
            blendFunc GL_ONE GL_ONE
          }
}

///////////////////////////////////////////////////////////////////////////////////
/////////			Samotne veci    lisi, obloha
///////////////////////////////////////////////////////////////////////////////////


models/mapobjects/ferna
{
    cull disable
    surfaceparm trans
    surfaceparm alphashadow
        {
                map models/mapobjects/ferna.tga
                alphaFunc GE128
		depthWrite
		rgbGen vertex
        }
}

textures/testy/listi1
{
	qer_editorimage textures/testy/listi1.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/listi1.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}


textures/testy/hintskip
{
qer_editorimage textures/testy/skip
qer_nocarve
qer_trans 0.30
surfaceparm nodraw
surfaceparm nonsolid
surfaceparm skip
surfaceparm structural
surfaceparm trans
}

textures/testy/leknin
{
	qer_editorimage textures/testy/leknin.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/leknin.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/plant1
{
	qer_editorimage textures/testy/plant1.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/plant1.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/rostlina
{
	qer_editorimage textures/testy/rostlina.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/rostlina.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}


textures/testy/leknin_kvet
{
	qer_editorimage textures/testy/leknin_kvet.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/leknin_kvet.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}


textures/testy/malba1
{
	qer_editorimage textures/testy/malba1.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/malba1.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}


textures/testy/obloha
{
	qer_editorimage textures/testy/obloha.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_surfacelight 110
	q3map_lightsubdivide 256
	q3map_sun 0.49 0.4 0.42 45 0 45
	skyParms env/obloha 128 -
}



textures/testy/nebe2
{
	qer_editorimage textures/testy/obloha.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_lightsubdivide 768
	q3map_sunExt 0.780392 0.792157 0.839216 50 45 90 8 16
	q3map_sunExt 0.780392 0.792157 0.839216 50 45 45 8 16
	q3map_sunExt 0.780392 0.792157 0.839216 50 135 45 8 16
	q3map_sunExt 0.780392 0.792157 0.839216 50 225 45 8 16
	q3map_sunExt 0.780392 0.792157 0.839216 50 315 45 8 16
	q3map_skyLight 150 5
	skyParms env/obloha 128 -
}

textures/testy/trava2
{
	qer_editorimage textures/testy/trava2.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none

	{
		map textures/testy/trava2.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/trava3
{
	qer_editorimage textures/testy/trava3.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none

	{
		map textures/testy/trava3.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}


textures/testy/trava4
{
	qer_editorimage textures/testy/trava4.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/trava4.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/trava4_sucha
{
	qer_editorimage textures/testy/trava4_sucha.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/trava4_sucha.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/ker1
{
	qer_editorimage textures/testy/ker1.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/ker1.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/list1
{
	qer_editorimage textures/testy/list1.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/list1.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/list2
{
	qer_editorimage textures/testy/list2.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/list2.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}


textures/testy/listy
{
	qer_editorimage textures/testy/listy.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/listy.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/listy_velke
{
	qer_editorimage textures/testy/listy_velke.tga
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	{
		map textures/testy/listy_velke.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/testy/drevo_noclp

{
	qer_editorimage textures/testy/drevo.tga
	surfaceparm nonsolid

	{
		map textures/testy/drevo.tga
		rgbGen identity
	}
        {
                map $lightmap
                blendfunc filter
                rgbGen identity
                tcGen lightmap
        }
}


///////////////////////////////////////////////////////////////////////////////////
/////////			Skala, skala + neco ... pruhy, tmava, zrcadlo...
///////////////////////////////////////////////////////////////////////////////////


textures/testy/skala
{
	q3map_nonplanar
	q3map_shadeangle 120
        qer_editorimage textures/testy/skala.tga
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/testy/skala.tga
		blendFunc filter
	}
}


textures/testy/skala-pruhy
{
        qer_editorimage textures/testy/skala-pruhy.tga
	
	q3map_nonplanar
	q3map_shadeAngle 120
	
	{
		map textures/testy/skala.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/pruhy.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/testy/skala-skala2
{
        qer_editorimage textures/testy/skala-skala2.tga
	
	q3map_nonplanar
	q3map_shadeAngle 120
	
	{
		map textures/testy/skala.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/skala2.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}



textures/testy/skala-skala_tmava
{
        qer_editorimage textures/testy/skala-skala_tmava.tga
	
	q3map_nonplanar
	q3map_shadeAngle 120
	
	{
		map textures/testy/skala.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/skala_tmava.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}


textures/testy/skala_zrcadlo
{
	qer_editorimage textures/testy/skala_zrcadlo_obr.tga
	portal
	q3map_nonplanar
	q3map_shadeangle 120
	{
		map textures/testy/skala_zrcadlo.tga
		blendfunc blend
		depthWrite
	}
}


models/mapobjects/leafb
{
    cull disable
    surfaceparm alphashadow
        {
                map models/mapobjects/leafb.tga
                alphaFunc GE128
		depthWrite
		rgbGen vertex
        }
}


///////////////////////////////////////////////////////////////////////////////////
/////////			pisek, pisek + neco ... hlina, trava, sutry, skala...
///////////////////////////////////////////////////////////////////////////////////


textures/testy/pisek	
{
	q3map_nonplanar
	q3map_shadeangle 120
        qer_editorimage textures/testy/pisek.tga
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/testy/pisek.tga
		blendFunc filter
	}
}


textures/testy/hlina-pisek
{
        qer_editorimage textures/testy/hlina-pisek.tga
	
	q3map_nonplanar
	q3map_shadeangle 120
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	{
		map textures/testy/hlina.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/pisek.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/testy/trava-pisek
{
        qer_editorimage textures/testy/trava-pisek.tga
	
	q3map_nonplanar
	q3map_shadeangle 120
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	
	{
		map textures/testy/trava.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/pisek.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}


textures/testy/skala-pisek
{
        qer_editorimage textures/testy/skala-pisek.tga
	
	q3map_nonplanar
	q3map_shadeangle 120
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	{
		map textures/testy/skala.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/pisek.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/testy/skala-pisek2
{
        qer_editorimage textures/testy/skala-pisek.tga
	
	q3map_nonplanar
	q3map_shadeangle 120
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	{
		map textures/testy/pisek.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/skala.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/testy/skala-trava
{
        qer_editorimage textures/testy/skala-pisek.tga
	
	q3map_nonplanar
	q3map_shadeangle 120
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	{
		map textures/testy/trava.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/skala.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/testy/skala-trava2
{
        qer_editorimage textures/testy/skala-pisek.tga
	
	q3map_nonplanar
	q3map_shadeangle 120
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	{
		map textures/testy/skala.tga	// Primary
		rgbGen identity
	}
	{
		map textures/testy/trava.tga	// Secondary
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

///////////////////////////////////////////////////////////////////////////////////
/////////			voda, kour
///////////////////////////////////////////////////////////////////////////////////


textures/testy/vodopad
{
	qer_editorimage textures/testy/vodopad_obr.tga
	surfaceparm nonsolid
	//q3map_surfacelight 75

	cull disable
	deformVertexes wave 100 sin 5 5 0 1.5 
	{
		map textures/testy/vodopad.tga
		blendfunc blend
		rgbGen identity
		tcMod scroll 0 -1.5
		
	}
}

textures/testy/vodopad_tmavy
{
	qer_editorimage textures/testy/vodopad_obr.tga
	surfaceparm nonsolid
	q3map_surfacelight 50

	cull disable
	deformVertexes wave 100 sin 3 3 0 1.5 
	{
		map textures/testy/vodopad_tmavy.tga
		blendfunc blend
		rgbGen identity
		tcMod scroll 0 -1.5
		
	}
}

textures/testy/maly_vodopad_tmavy
{
	qer_editorimage textures/testy/vodopad_obr.tga
	surfaceparm nonsolid
	q3map_surfacelight  50

	cull disable
	deformVertexes wave 100 sin 1 1 0 1.5 
	{
		map textures/testy/maly_vodopad_tmavy.tga
		blendfunc blend
		rgbGen identity
		tcMod scroll 0 -1.5
		
	}
}

textures/testy/kour_A
{
	qer_editorimage textures/testy/kour.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/testy/kour.tga
		tcMod rotate 0.0
		AlphaGen wave sawtooth 1 -1 0.851161 0.5
		rgbGen wave sawtooth 1. 10 0.851161 0.5
		tcMod stretch sawtooth 0.4 1.5 0.851161 0.5
		blendfunc blend
	}
}

textures/testy/kour_B
	{
	qer_editorimage textures/testy/kour.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/testy/kour.tga
		tcMod rotate 0.0
		AlphaGen wave sawtooth 1.0 -1.0 1.998535 0.5
		rgbGen wave sawtooth 1.0 0.0 1.998535 0.50
		tcMod stretch sawtooth 0.4 1.5 1.998535 0.5
		blendfunc blend
	}
}

textures/testy/kour_C
	{
	qer_editorimage textures/testy/kour.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/testy/kour.tga
		tcMod rotate 0.000000
		AlphaGen wave sawtooth 1.0 -1.0 1.050752 0.5
		rgbGen wave sawtooth 1.0 0.0 1.050752 0.5
		tcMod stretch sawtooth 0.4 1.5 1.050752 0.5
		blendfunc blend
	}
}

textures/testy/kour_D
{
	qer_editorimage textures/testy/kour.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/testy/kour.tga
		tcMod rotate 0.000000
		AlphaGen wave sawtooth 1.0 -1.0 0.491287 0.5
		rgbGen wave sawtooth 1.0 0.0 0.491287 0.5
		tcMod stretch sawtooth 0.4 1.5 0.491287 0.5
		blendfunc blend
	}
}

textures/testy/kour_E
{
	qer_editorimage textures/testy/kour.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/testy/kour.tga
		tcMod rotate 0.000000
		AlphaGen wave sawtooth 1.0 -1.0 1.857723 0.5
		rgbGen wave sawtooth 1.0 0.0 1.857723 0.5
		tcMod stretch sawtooth 0.4 1.5 1.857723 0.5
		blendfunc blend
	}
}



///////////////////////////////////////////////////////////////////////////////////
/////////			alfy-procenta
///////////////////////////////////////////////////////////////////////////////////


textures/testy/alpha_000	// Primary texture ONLY
{
	q3map_alphaMod volume
	q3map_alphaMod set 0
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.75
}

textures/testy/alpha_025
{
	q3map_alphaMod volume
	q3map_alphaMod set 0.25
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.75
}

textures/testy/alpha_050	// Perfect mix of both Primary + Secondary
{
	q3map_alphaMod volume
	q3map_alphaMod set 0.50
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.75
}

textures/testy/alpha_075
{
	q3map_alphaMod volume
	q3map_alphaMod set 0.75
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.75
}

textures/testy/alpha_085
{
	q3map_alphaMod volume
	q3map_alphaMod set 0.85
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.75
}

textures/testy/alpha_100	// Secondary texture ONLY
{
	q3map_alphaMod volume
	q3map_alphaMod set 1.0
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.75
}


