07-15-2018, 07:28 AM
I'm trying to set up a basic window texture with transparency, but it doesn't appear to be working at the moment.
I originally went with a 32bit .TGA with an alpha channel, but this didn't appear to work correctly. I then tried using separate .jpg images. Neither has worked.
I've currently got three image files:
The two main things I'm trying to accomplish are:
I originally went with a 32bit .TGA with an alpha channel, but this didn't appear to work correctly. I then tried using separate .jpg images. Neither has worked.
I've currently got three image files:
- glass-lineframe.jpg
- glass-lineframe_alpha.jpg
- glass-lineframe_gloss.jpg
Code:
textures/map-aeris/glass-lineframe
{
q3map_bouncescale 3
qer_editorimage textures/map_aeris/glass-lineframe.jpg
dpreflectcube cubemaps/default/sky
dpnoshadow
surfaceparm trans
surfaceparm alphashadow
q3map_lightmapSampleSize 64
{
map textures/map_aeris/glass-lineframe.jpg
blendfunc blend
rgbgen lightingDiffuse
}
{
map $lightmap
blendfunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
}
- Have the texture render with transparency.
- Have vis/light allow light through the texture when they calculate lightmaps