I wanted to do Alpha shadowing with glass instead of a grate. I mean the q3map2 specific shader that involves _castshadows and _receive shadows.
This is my glass shader
textures/e3/glass_security_hex
{
qer_editorimage textures/e3/sglass1
qer_trans 0.9
surfaceparm nonopaque
surfaceparm forcefield
surfaceparm trans
q3map_material Glass
q3map_nolightmap
{
map textures/e3/etest4
blendFunc GL_ONE GL_ONE
tcGen environment
}
{
map textures/e3/sglass1
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
I need to change it somehow so light can go through it. Here is a grate shader that works great for alpha shadowing, but doesn’t look like glass 
I’m not using this one, but posting it for reference on how I can change the previosu shader I posted.
textures/mymap/grate
{
qer_editorimage textures/imperial/grate02
surfaceparm nonopaque
surfaceparm trans
surfaceparm alphashadow
cull twosided
qer_trans 1.0
{
map textures/imperial/grate02
alphaFunc GE128
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}









