Results 1 to 3 of 3

Thread: Missing texture3D

  1. #1

    Missing texture3D

    The OpenGL Shading Language version 1.28 http://www.opengl.org/registry/doc/G...ull.1.20.8.pdf has the following:

    Code :
    // Use the texture coordinate coord to do a texture lookup in the 3D texture currently bound to sampler.
    vec4 texture3D (sampler3D sampler, vec3 coord [, float bias] )
    My understanding is that WebGL implements The OpenGL Shading Language version 1.0 http://www.khronos.org/registry/gles...ion_1.0.17.pdf which does not support texture3D.

    Is it possible to implement texture3D on WebGL?

    Thanks in advance for your help.

  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Missing texture3D

    It's not OpenGL ES version 1.0 - it's version 2.0 - so it'll run on (for example) an iPhone 4 - but not on iPhone 3. 2.0 includes shaders - 1.0 doesn't.

    One of the fundamental design decisions in Web3D was to base it on OpenGL ES 2.0 in order that it can run on things like cellphones and tablet computers. Anything that's not in ES2 has to be added as an extension - and things like that are pretty much guaranteed not to exist on at least some computers.

    So right now, the answer is "No".

  3. #3
    Member
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    90

    Re: Missing texture3D

    A bit of clarification to the above: OpenGL ES 2.0 actually uses version 1.0.17 of the shader language. I assume this was done entirely to confuse people...

Similar Threads

  1. glOrtho is missing?
    By Esaras in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 5
    Last Post: 10-27-2011, 05:17 AM
  2. Replies: 1
    Last Post: 02-02-2009, 06:15 PM
  3. eglBindTexImage missing?
    By freber in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 11-30-2007, 06:25 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
  •