Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: how to use glFogCoordEXT in GLSL

  1. #1
    Junior Member Newbie
    Join Date
    May 2013

    how to use glFogCoordEXT in GLSL

    I used glFogCoordEXT to distinguish explored and unexplored terrain. But after i use a shader for normal mapping on terrain, its working fine but the fog is no more there.

    can some one please help me, (i don't know glsl).

  2. #2
    Member Regular Contributor malexander's Avatar
    Join Date
    Aug 2009
    When you have a fragment shader active, it replaces the fixed function shading pipeline. This includes fog.

    Instead, send the fog attribute as a vertex shader input and apply the fog effect in your shader.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts