grate shader q


(ACROBAT) #1

I’m using a grate to _castshadows and make alpha shadows.

Anyways, my problem is that the shader draws the grate inside the brush not just on the external surfaces of the brush. It textures the internal surfaces of the brush and I want only the external surfaces of the brush textured.

Here’s my shader

textures/quest/sci_fi_metal_floorshadershader
{
qer_editorimage textures/quest/sci_fi_metal_floor
surfaceparm nonopaque
surfaceparm trans
surfaceparm alphashadow
cull twosided
qer_trans 1.0
{
map textures/quest/sci_fi_metal_floor
alphaFunc GE128
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

edit: trying cull back

hmm


(murka) #2

remove the cull param altogether. It will default to external faces.