I used the q3map2 template in EasyGen for the shader and I added q3map_material sand in some places, here it is:
textures/tatooine_canyon/terrain_0
{
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 1024 1024
q3map_tcGen ivector ( 853 0 0 ) ( 0 853 0 )
{
map textures/desert/rockwall2.jpg
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/tatooine_canyon/terrain_1
{
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 1024 1024
q3map_material sand
q3map_tcGen ivector ( 853 0 0 ) ( 0 853 0 )
{
map textures/danger/sanddunes.jpg
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/tatooine_canyon/terrain_2
{
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 1024 1024
q3map_material sand
q3map_tcGen ivector ( 853 0 0 ) ( 0 853 0 )
{
map textures/desert/sandfloor2old.jpg
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/tatooine_canyon/terrain_0to1
{
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 1024 1024
q3map_tcGen ivector ( 853 0 0 ) ( 0 853 0 )
{
map textures/desert/rockwall2.jpg
}
{
map textures/danger/sanddunes.jpg
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/tatooine_canyon/terrain_0to2
{
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 1024 1024
q3map_material sand
q3map_tcGen ivector ( 853 0 0 ) ( 0 853 0 )
{
map textures/desert/rockwall2.jpg
}
{
map textures/desert/sandfloor2old.jpg
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/tatooine_canyon/terrain_1to2
{
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 1024 1024
q3map_material sand
q3map_tcGen ivector ( 853 0 0 ) ( 0 853 0 )
{
map textures/danger/sanddunes.jpg
}
{
map textures/desert/sandfloor2old.jpg
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/tatooine_canyon/terrain.vertex
{
{
map textures/desert/rockwall2.jpg
rgbGen vertex
}
}