Author Topic: Shader problem (transparency)  (Read 2532 times)

rotacak

  • Posts: 761
  • Turrets: +39/-64
Shader problem (transparency)
« 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.



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
  }
}

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Shader problem (transparency)
« Reply #1 on: September 19, 2009, 08:05:46 pm »
use rgbGen lightingDiffuse for models.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Shader problem (transparency)
« Reply #2 on: September 19, 2009, 09:17:55 pm »
Thanx, you know everything about trem :)