[youtube]zH9qTuIfivU[/youtube]
There's this glass shader, which has a border and the center is blank. When I render lighting, it creates a lightmap that covers the entire surface, including the blank centers of the glass. No combination of alphaFunc or blendFunc create exactly the result I'm looking for, which is lightmaps only on the glass borders.
Code: Select all
textures/mc/49
{
qer_editorimage textures/mc/49.tga
qer_alphafunc greater 0.5
qer_trans 0.75
q3map_lightmapSize 512 512
q3map_lightmapBrightness 2.0
q3map_alphaShadow
q3map_lightFilter
q3map_nonplanar
surfaceparm trans
{
tcgen lightmap
map $lightmap
rgbGen identity
blendfunc filter
}
{
map textures/mc/49.tga
alphaFunc GE128
rgbGen identity
}
}