Hi, i have got recently a problem with my terrain shader. the textures doesnt show correctly and no blending is working. Terrain made with easygen but manually textured on radiant. Shader name added to shaderlist of course.
here are some pics of actual and the pics of the terrain i want. Thank you for your help
textures/pha/terrain_base
{
nopicmips
q3map_lightmapaxis z
q3map_lightmapmergable
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
}
textures/pha/terrain_0
{
q3map_baseshader textures/pha/terrain_base
qer_editorimage textures/temperate_sd/dirt3.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/dirt3.tga
tcMod scale 0.167 0.167
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/pha/terrain_1
{
q3map_baseshader textures/pha/terrain_base
qer_editorimage textures/temperate_sd/rock_ugly_brown.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rock_ugly_brown.tga
tcMod scale 0.167 0.167
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/pha/terrain_2
{
q3map_baseshader textures/pha/terrain_base
qer_editorimage textures/temperate_sd/master_grass_dirt3.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/master_grass_dirt3.tga
tcMod scale 0.167 0.167
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/pha/terrain_0to1
{
q3map_baseshader textures/pha/terrain_base
qer_editorimage textures/temperate_sd/dirt3.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/dirt3.tga
tcMod scale 0.167 0.167
}
{
map textures/temperate_sd/rock_ugly_brown.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.167 0.167
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/pha/terrain_0to2
{
q3map_baseshader textures/pha/terrain_base
qer_editorimage textures/temperate_sd/dirt3.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/dirt3.tga
tcMod scale 0.167 0.167
}
{
map textures/temperate_sd/master_grass_dirt3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.167 0.167
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/pha/terrain_1to2
{
q3map_baseshader textures/pha/terrain_base
qer_editorimage textures/temperate_sd/rock_ugly_brown.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rock_ugly_brown.tga
tcMod scale 0.167 0.167
}
{
map textures/temperate_sd/master_grass_dirt3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
tcMod scale 0.167 0.167
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
[/img]

