// Vera Visions Material { surfaceParm wood if $programs diffusemap "textures/next/plywood3.tga" { program lightmapped map $diffuse map $normalmap } else { map $lightmap rgbGen identity } { map "textures/next/plywood3.tga" rgbGen identity blendFunc GL_DST_COLOR GL_ZERO } endif }