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: OpenGL 4 - Can we still not specify a texture attachment index for blending

Threaded View

  1. #1
    Junior Member Regular Contributor
    Join Date
    Mar 2009
    Location
    Seattle, WA
    Posts
    209

    OpenGL 4 - Can we still not specify a texture attachment index for blending

    If you have a gbuffer for a deferred renderer like this:

    Texture 0
    ---------
    R: Diffuse.r
    G: Diffuse.g
    B: Diffuse.b
    A: Diffuse.a

    Texture 1
    ---------
    R: Normal.x
    G: Normal.y
    B: Normal.z
    A: Diffuse.a

    Texture 2
    ---------
    R: Specular
    G: Gloss
    B: <empty>
    A: Diffuse.a

    Texture 3
    ---------
    R: Emission.x
    G: Emission.y
    B: Emission.z
    A: Diffuse.a

    For alpha-blended decals that are rendered prior to lighting, the alpha channel in each texture attachment has to hold the same value. If each attachment could be told to blend with the alpha channel of attachment 0, the data could be compressed as follows:

    Texture 0
    ---------
    R: Diffuse.r
    G: Diffuse.g
    B: Diffuse.b
    A: Diffuse.a

    Texture 1
    ---------
    R: Normal.x
    G: Normal.y
    B: Normal.z
    A: Specular

    Texture 2
    ---------
    R: Emission.x
    G: Emission.y
    B: Emission.z
    A: Gloss

    I just wanted to check if this is this possible yet in OpenGL 4? I found the documentation for draw_buffers_blend, but it doesn't appear to be what I'm after:
    http://www.opengl.org/registry/specs...fers_blend.txt
    Last edited by JoshKlint; 12-09-2013 at 09:34 PM.

Posting Permissions

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