Hi, I'm just starting off with vertex shaders and I'm a bit confused about fog. Specifically, I use standard GL_FOG, and everything works as expected. I then switch to ARB_vertex_program with a simple shader that just does the transformation matrix multiply and passes through texcoords and vertex color straight through. It works as expected, but the fog color is no longer applied. I'm a little confused because I thought that fog was still a fixed function stage after the fragment shading pipeline.
My understanding is that I can use per-vertex fog using EXT_fog_coord or something, but that's not the route I want to go. I just want to use the standard GL fog. Do I need to do something specific in the vertex shader in order to allow fog to work properly? BTW, this is on a Radeon8500 using 7.79 drivers. Any ideas?
My understanding is that I can use per-vertex fog using EXT_fog_coord or something, but that's not the route I want to go. I just want to use the standard GL fog. Do I need to do something specific in the vertex shader in order to allow fog to work properly? BTW, this is on a Radeon8500 using 7.79 drivers. Any ideas?