Page 1 of 1
Fog in Quake 4
Posted: Tue Oct 31, 2006 4:29 pm
by o'dium
I cant remember for the life of me how to make fog appear thicker/thinner... I could of sword it was a simple material change but I cant find it lol. I know how to do in our own PPL engine very esily, but in Q4, I'm stumped
Anybody have any ideas then on how to change fog density?
Posted: Tue Oct 31, 2006 4:38 pm
by Black_Dog
Select your fog light, add keyval shaderparm3 [maxFogDistance].
Posted: Tue Oct 31, 2006 4:44 pm
by o'dium
I dont think I follow?
lights/odctf1_worldfog
{
fogLight // tell the engine it is fog and not a light
noShadows
{
map _fog // the internal fog image
colored // take rgba from entity shaderparms
shaderparm3 [512]
zeroClamp
}
}
Posted: Tue Oct 31, 2006 5:03 pm
by hemostick
A key/value pair on the entity itself, not in the material

Posted: Tue Oct 31, 2006 5:05 pm
by o'dium
Ahh, i'll try in a tick... thx
Posted: Tue Oct 31, 2006 5:11 pm
by o'dium
Fantastic, works, thanks.