View Full Version : problem using OPTION ARB_fog_linear in fragment program

07-20-2005, 04:06 AM
I have been writing some simple normalmap bump effect with ARB_fragment_program, and I tried to add fog effect to it. I am using
!!ARBfp1.0 OPTION ARB_fog_linear;
in my fragment program, but I can't see any fog effect on polygons using it. Other polygons using fixed pipeline are correctly fogged. I can't figure out why. Is there anything more needs to be done?

07-20-2005, 04:27 AM
not sure, but likely you need to output fogcoord in your vertex program

07-20-2005, 09:07 AM
Tou definitely need to do that.