I’m sure the problem is something pretty obvious, but I can’t see it.
http://homepages.ihug.co.nz/~moonkey/terraintest.jpg
Using plain colours to see what’s going on - green undercoat with red and blue blends. The red and blue textures both have ~85% bright alpha.
There is some blending going on (the colours showing up are blends of the texture colours), its just totally sharp.
Compiling with latest q3map2.5.14 (dev build, the original gave different, weird results)
shader:
textures/terraintest/terrain
{
qer_editorimage textures/terraintest/terrain.tga
q3map_nonplanar
q3map_shadeAngle 179
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
q3map_tcMod rotate 33
q3map_lightmapAxis z
q3map_lightmapSampleOffset 8
q3map_alphaMod dotproduct2 ( 0 0 .85 )
{
map textures/terraintest/green.tga
rgbGen identity
}
{
map textures/terraintest/red_alpha.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GE128
rgbGen identity
alphaGen oneMinusVertex
}
{
map textures/terraintest/blue_alpha.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GE128
rgbGen identity
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
Any ideas? :bored:
