...haven't read the whole thread but if fog is missing then the author of the shader simply forgot to handle fog in the vertex shader. with hlsl this is just one line of code. -> http://www.conitecserver.com/ubbthreads/showflat.php?Cat=&Board=SHADER&Number=432085 (my second post in this thread)