Jump to content
  • Advertisement


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


Problem with a fog

This topic is 5736 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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;
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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!