whats wrong with my fog shader?


(StormShadow) #1

It looks fine to me, but when i build then load the map there is no fog to be seen.

textures/sfog/storm_fog1
{
qer_editorimage textures/sfog/storm_fog1.tga
farplanedist 2240
fogclip 2240
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap

	fogparms ( .211 .231 .094 )

}

Is there something im missing? Or is there something that I need to remove?


(ydnar) #2

The fog line is missing a distance. Add a value, say 4096, at the end of the fog line.

Also, make sure your shader is listed in shaderlist.txt so Q3Map2 can pick it up.

y


(StormShadow) #3

youd think after years of q3 mapping i wouldnt forget soemthing like that :smiley:

thanks ydnar


(system) #4

But maybe you didn’t wrote a lot of shaders in all this years. :wink:


(StormShadow) #5

true, i mostly copied other peoples shaders and changed the paths :smiley:


(sock) #6

lol, good come back. :slight_smile:

Sock
:moo: