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: Frag Shader vs BlendFunc

  1. #1
    Junior Member Regular Contributor
    Join Date
    Oct 2007
    Location
    Phoenix, AZ
    Posts
    109

    Frag Shader vs BlendFunc

    Sorry if this question is too simple.
    The answer is probably made clear somewhere, and I just haven't stumbled into it yet.

    Question(s):
    Do the results of glBlendFunc() get fed to the Fragment shader? (when the shader gets the current glColor, or when he grabs a sample)
    Or do the results of the Fragment shader get fed to the blend function?
    Or do frag shaders negate / replace blend functions?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    985
    Quote Originally Posted by CRasterImage View Post
    Or do the results of the Fragment shader get fed to the blend function?
    This option is the most close to the truth. You should check the diagrams in the spec that present the OpenGL pipeline. It very clearly presents the ordering of the operations.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

  3. #3
    Junior Member Regular Contributor
    Join Date
    Oct 2007
    Location
    Phoenix, AZ
    Posts
    109
    Ok, thanks.

Posting Permissions

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