I use EasyGen-made terrain, in my current map. (See my terrain shaders below.)
I’ve had a look at the ET maps’ shader files, but I dont have the skills to determine what is “wrong” with my shaders. Could anyone point me in the right direction? How could the shader files be improved!
Here are my shaders for the terrain. It is an outdoor map, with the wurzburg sky applied (a cool, dark sky that came with ET). The only lights in the map are the sky and some additional lights (values 100-1000).
I use radiant 1.3.11 beta and Q3map2 2.5.5.
textures/berserk_beta4/terrain_0
{
q3map_baseshader textures/berserk_beta4/terrain_base
surfaceparm landmine
surfaceparm gravelsteps
{
map textures/berserktex/graes.tga
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_1
{
q3map_baseshader textures/berserk_beta4/terrain_base
surfaceparm landmine
surfaceparm gravelsteps
{
map textures/berserktex/rockgrav.tga
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_2
{
q3map_baseshader textures/berserk_beta4/terrain_base
surfaceparm landmine
surfaceparm gravelsteps
{
map textures/berserktex/dirtbrun.tga
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_3
{
q3map_baseshader textures/berserk_beta4/terrain_base
surfaceparm landmine
surfaceparm gravelsteps
{
map textures/berserktex/grasstig.tga
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_0to1
{
q3map_baseshader textures/berserk_beta4/terrain_base
{
map textures/berserktex/graes.tga
tcMod scale 0.100 0.100
}
{
map textures/berserktex/rockgrav.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_0to2
{
q3map_baseshader textures/berserk_beta4/terrain_base
{
map textures/berserktex/graes.tga
tcMod scale 0.100 0.100
}
{
map textures/berserktex/dirtbrun.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_0to3
{
q3map_baseshader textures/berserk_beta4/terrain_base
{
map textures/berserktex/graes.tga
tcMod scale 0.100 0.100
}
{
map textures/berserktex/grasstig.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_1to2
{
q3map_baseshader textures/berserk_beta4/terrain_base
{
map textures/berserktex/rockgrav.tga
tcMod scale 0.100 0.100
}
{
map textures/berserktex/dirtbrun.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_1to3
{
q3map_baseshader textures/berserk_beta4/terrain_base
{
map textures/berserktex/rockgrav.tga
tcMod scale 0.100 0.100
}
{
map textures/berserktex/grasstig.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_2to3
{
q3map_baseshader textures/berserk_beta4/terrain_base
{
map textures/berserktex/dirtbrun.tga
tcMod scale 0.100 0.100
}
{
map textures/berserktex/grasstig.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.100 0.100
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/berserk_beta4/terrain_base
{
q3map_lightmapaxis z
q3map_lightmapmergable
q3map_lightmapsize 512 512
q3map_tcGen ivector ( 640 0 0 ) ( 0 640 0 )
}
Not urgent
MANY thanks in advance!
// Loffy
PS: I compile with
-bsp
-vis
-v -light -fast -super 2 -filter -bounce 1 -external -lightmapsize 256 -approx 4