Archived

This topic is now archived and is closed to further replies.

TheVoid

Problem with a fog

Recommended Posts

I'' ve created a textured cube and I''m inside this cube. When a fog is disabled everything is ok, but when I enable fog something bad happens with texture. Why? How to resolve that?

Share this post


Link to post
Share on other sites
I thought that it was my mistake, that texture is streatching strangely, but I''ve downloaded 16th Lesson of NeHe''s tutorial and modified one variable from the begining of the source code from
GLfloat z = -5.0f;
to
GLfloat z = 0.0f;
The result was the same I had before. That should be enough. Download this lesson please, and tell me how to resolve this problem.

Share this post


Link to post
Share on other sites