Has anybody figured out what blend modes to use in your grate shaders so that they will blend correctly with global fog? Here is my shader:
textures/fordtest/floorgrate
{
qer_editorimage textures/fordtest/floorgrate
cull twosided
{
map textures/fordtest/floorgrate
alphaFunc GE128
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
rgbGen identity
}
{
map $lightmap
alphaFunc GE128
blendFunc GL_DST_COLOR GL_SRC_COLOR
}
}
The grate looks relatively ok from above, but if you go to the next lower level and look up it is off-colored and transparent. Thanks ahead of time for any responses.
I will look into all of your suggestions.