News:

Come Chat with us live! Learn how HERE!

Main Menu

Shader problem (transparency)

Started by rotacak, September 19, 2009, 08:02:26 PM

rotacak

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.



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

textures/karith/pallette_top
{
  cull disable
  nopicmip
  {
    map textures/karith/pallette_top.tga
    alphaFunc GE128
    depthWrite
    rgbGen vertex
  }
}

gimhael

use rgbGen lightingDiffuse for models.