fog coordinates

Member
Posts: 21
Joined: 2004.11
Post: #1
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            0x8450
#define GL_FOG_COORDINATE_EXT                    0x8451

but 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 );
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
Dont #define them in your header, #include <OpenGL/glext.h> instead.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  openal coordinates vs. opengl coordinates gerald 1 6,151 Feb 3, 2011 10:04 PM
Last Post: OneSadCookie