Original Post
I''m Implementig the Fog using Opengl Api(rasterization only).but
when I draw a object with fog,it does not correctly interpolated.
using Full Opengl(T&L) the fog is correctly interpolated.
where is the problems????
My Fog:
Inverse=1.0f/(FogEnd-FogStart);
for(i=0;i!=NumVertex;i++)
{
FogBuffer=(FogEnd-Point[i].Z)*Inverse;
}
// when I draw a polygons i''m using:
// glFogCoordfEXT(FogBuffer[vertex1]);
// Point is an array of Vertex in Camera Space.
Thanks in Advance