![]() |
|
fog coordinates - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Graphics & Audio Programming (/forum-9.html) +--- Thread: fog coordinates (/thread-5986.html) |
fog coordinates - MACnus - Jan 7, 2005 10:15 AM I'm going trough the Heightmap tutorial on gametutorials.com , and I'm having problems with the fog coordinates. I have defined them in my hedaer file: Code: #define GL_FOG_COORDINATE_SOURCE_EXT 0x8450but when i use it in my implementation file it doesnt show up glFogi(GL_FOG_COORDINATE_SOURCE_EXT, GL_FOG_COORDINATE_EXT); I've tried to comment the line, if i do i get fog everywhere. (i also have scaled down the heightmap width this) glScalef( 0.15f, 0.15f * HEIGHT_RATIO, 0.15f ); fog coordinates - DoG - Jan 8, 2005 11:37 AM Dont #define them in your header, #include <OpenGL/glext.h> instead. |