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 5 of 5

Thread: Modulate2x

  1. #1
    Junior Member Newbie
    Join Date
    May 2002
    Location
    Echirolles
    Posts
    9

    Modulate2x

    How can I use the modulate2x for my lightmap objects?
    I can't find function to use modulate 2x? Is there an extension for doing this? How does it work?

  2. #2
    Intern Contributor
    Join Date
    Dec 2000
    Location
    Redmond, WA
    Posts
    89

    Re: Modulate2x

    ARB_texture_env_combine has a scale factor as do many of the other fragment shading models. For your multipass fallback path, you can do a src*dst + dst*src blend.

    -Jason

  3. #3
    Junior Member Newbie
    Join Date
    May 2002
    Location
    Echirolles
    Posts
    9

    Re: Modulate2x

    How do you do this?
    I tried to use
    glTexEnvf(GL_TEXTURE_ENV, RGB_SCALE_ARB, 2.0);

    but it doesn't work. it doesn't compile...

  4. #4
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    London, England
    Posts
    163

    Re: Modulate2x

    glTexEnvf(GL_TEXTURE_ENV, GL_RGB_SCALE_ARB, 2.0);

  5. #5
    Junior Member Newbie
    Join Date
    May 2002
    Location
    Echirolles
    Posts
    9

    Re: Modulate2x

    thanks, it works well.

Posting Permissions

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