transparency in radiant 1.5?


(IndyJones) #1

all models/textures with alpha has white ‘border’… how do i remove it? in 1.4 everything works fine, so shaders are okay.


(Wezelkrozum) #2

qer_trans 0.9 in the shader of your texture.


(IndyJones) #3

models/mp_carentan/newgrass
{
  qer_trans 0.9
  qer_editorimage models/mp_carentan/newgrass.tga
  qer_alphafunc greater 0.5
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans
	surfaceparm nonsolid
	
  deformVertexes wave 194 sin 0 2 0 .1
  deformVertexes wave 30 sin 0 1 0 .3
  deformVertexes wave 194 sin 0 1 0 .4

    cull twosided
    nopicmip
    nomipmaps
    {
        map models/mp_carentan/newgrass.tga
        alphaFunc GE128
        depthwrite
        rgbGen vertex
    }
}

nothing is wrong here, and like i said, in radiant 1.4 it works fine.


(Pande) #4

thats most odd… my 1.5 works fine. How are your etmain models, do they work? i cant tell what model that is in your picture, so I dunno if its yours or base et


(IndyJones) #5

it’s mine. i tried highfoliage1 and it works fine, ie without that white border…


(Pande) #6

check its shader then. :o perhaps it has to do with the rgbGen diffuse settings?