- Code: Select all
textures/arboria/rockmod
{
qer_editorimage textures/arboria/rockmod.tga
q3map_lightmapSampleOffset 8
q3map_globalTexture
q3map_nonplanar
q3map_shadeangle 110
q3map_alphaMod dotproduct2 ( 0 0 0.95 )
q3map_tcmod scale 1.7 1.7
q3map_tcMod rotate 30
{
map textures/arboria/rockwall.tga // Primary
}
{
map textures/arboria/mossfloor.tga // Secondary
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
I did a cut and paste into my shader, renamed the textures, and ended up with this:
- Code: Select all
textures/rockyhills/dirtmod
{
qer_editorimage textures/rockyhills/dirtmod.tga
q3map_lightmapSampleOffset 8
q3map_globalTexture
q3map_nonplanar
q3map_shadeangle 110
q3map_alphaMod dotproduct2 ( 0 0 0.45 )
q3map_tcmod scale 1.7 1.7
q3map_tcMod rotate 30
{
map textures/rockyhills/dirtground.tga // Primary
}
{
map textures/rockyhills/leafground.tga // Secondary
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
I applied the dirtmod.tga texture to the meshes (and a test-brush). But what I get after compilation is just the leafground.tga texture. Is there something wrong with my shader? Or is the problem in the textures?