Tremulous Forum

Media => Mapping Center => Topic started by: rotacak on September 19, 2009, 08:02:26 pm

Title: Shader problem (transparency)
Post by: rotacak on September 19, 2009, 08:02:26 pm
Hi, I added new buildable to Tremulous but I have problem with transparency. Everything looks ok, but when I walking around, then buildable doing weird things. Texture changing collor to black etc.

(http://img233.imageshack.us/img233/1973/smaz.jpg)

Why? How to fix that? Texture is from textures/karith/pallette_top.tga and in shader is:

Code: [Select]
textures/karith/pallette_top
{
  cull disable
  nopicmip
  {
    map textures/karith/pallette_top.tga
    alphaFunc GE128
    depthWrite
    rgbGen vertex
  }
}
Title: Re: Shader problem (transparency)
Post by: gimhael on September 19, 2009, 08:05:46 pm
use rgbGen lightingDiffuse for models.
Title: Re: Shader problem (transparency)
Post by: rotacak on September 19, 2009, 09:17:55 pm
Thanx, you know everything about trem :)