Results 1 to 2 of 2

Thread: Accessing texture in shader without binding?

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2009
    Posts
    1

    Accessing texture in shader without binding?

    hi,

    is it possible to read texture in fragment shader without binding it to sampler in application? For ex. include texture IDs in VBO and pass texture ID to fragment shader and then access it with texture2D or some similar function/method? Im using GL 3.1 forward context & GLSL 1.40. If possible, what kind of choices are there?

    Thanks in advance!

  2. #2
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: Accessing texture in shader without binding?

    Already answered in the other forum...
    texture-arrays.

Similar Threads

  1. Trouble accessing texture data from the vertex shader
    By Nick's a Novice in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-17-2012, 10:09 AM
  2. accessing texture data in a vertex shader
    By g0l3m in forum OpenGL: GLSL
    Replies: 5
    Last Post: 12-19-2006, 09:03 AM
  3. Problem accessing FBO texture from shader[solved]
    By Dr_Davenstein in forum OpenGL: GLSL
    Replies: 1
    Last Post: 09-17-2006, 11:03 PM
  4. accessing texture in vertex shader
    By pegasy in forum OpenGL: GLSL
    Replies: 4
    Last Post: 04-28-2005, 08:18 AM
  5. texture & shader binding
    By Jeff Russell in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 09-25-2004, 10:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean