Skip to main content
gamedev.net
๐Ÿ”’ Locked

Fog Problem

Started by jeppa Apr 10, 2002 at 5:30 AM 0 replies 200+ views
Original Post
jeppa
jeppa
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.