1 / 10

FOG

FOG. To make fog , we need to 3 main info : Fog color Fog density Fog type. glFogf (PNAME, Pram ); glFogfv (PNAME,matrix_name);. To activate fog use function glEnable (GL_FOG);. void glHint(GLenum target, GLenum hint) ; G l enum target : GL_FOG_HINT

Download Presentation

FOG

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FOG

  2. To make fog , we need to 3 main info : • Fog color • Fog density • Fog type

  3. glFogf (PNAME,Pram); • glFogfv(PNAME,matrix_name);

  4. To activate fog use function • glEnable(GL_FOG);

  5. void glHint(GLenum target, GLenum hint); • Glenum target : GL_FOG_HINT • Glenum : GL_NICEST or GL_FASTEST or GL_DONT_CARE

  6. glFogi (GL_FOG_MODE,mode_type); • Mode type : • GL_LINEAR • GL_EXP • GL_EXP2

  7. GL_LINEAR

  8. GL_EXP

  9. GL_EXP2

More Related