Page 1 of 1

Shader only works sometimes

Posted: Sat Apr 27, 2013 1:29 am
by RedSnappa
This shader:

Code: Select all

textures/cerulean_alpha13/flame
{
   qer_editorimage textures/cerulean_alpha13/flame1.tga
   qer_trans 0.5
   q3map_surfacelight 512
   surfaceparm noimpact
   surfaceparm nolightmap
   surfaceparm nomarks
   surfaceparm nonsolid
   surfaceparm trans
   cull none
   {
      animMap 16 textures/cerulean_alpha13/flame1.tga textures/cerulean_alpha13/flame2.tga textures/cerulean_alpha13/flame3.tga textures/cerulean_alpha13/flame4.tga textures/cerulean_alpha13/flame5.tga textures/cerulean_alpha13/flame6.tga textures/cerulean_alpha13/flame7.tga textures/cerulean_alpha13/flame8.tga
      blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
      rgbGen identity
   }
}


gives me a nice animated flame if I do a bsp compile, but when I compile the vis and light phases, it stops working and gives me a static picture of a fire. What is going on and how do I fix it?

All images are .tga files with alpha channels.

Re: Shader only works sometimes

Posted: Mon Apr 29, 2013 6:42 am
by DagF
Do you get any errors while compiling?