Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: problem using OPTION ARB_fog_linear in fragment program

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Shanghai, China
    Posts
    128

    problem using OPTION ARB_fog_linear in fragment program

    I have been writing some simple normalmap bump effect with ARB_fragment_program, and I tried to add fog effect to it. I am using
    !!ARBfp1.0 OPTION ARB_fog_linear;
    in my fragment program, but I can't see any fog effect on polygons using it. Other polygons using fixed pipeline are correctly fogged. I can't figure out why. Is there anything more needs to be done?
    End of transmission...

  2. #2
    Member Regular Contributor CrazyButcher's Avatar
    Join Date
    Jan 2004
    Location
    Germany
    Posts
    401

    Re: problem using OPTION ARB_fog_linear in fragment program

    not sure, but likely you need to output fogcoord in your vertex program

  3. #3
    Member Regular Contributor
    Join Date
    Aug 2003
    Location
    France
    Posts
    296

    Re: problem using OPTION ARB_fog_linear in fragment program

    Tou definitely need to do that.

    SeskaPeel.

Posting Permissions

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