Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webgl2 3d textures #150

Merged
merged 53 commits into from
Feb 21, 2017
Merged

Webgl2 3d textures #150

merged 53 commits into from
Feb 21, 2017

Commits on Dec 27, 2016

  1. Configuration menu
    Copy the full SHA
    f1d95da View commit details
    Browse the repository at this point in the history
  2. add WebGL2 resource types

    greggman committed Dec 27, 2016
    Configuration menu
    Copy the full SHA
    7aadf7e View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2016

  1. Add GL constants

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    9fdefc7 View commit details
    Browse the repository at this point in the history
  2. Add VertexArray class

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    0a07160 View commit details
    Browse the repository at this point in the history
  3. Update Info for WebGL2

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    a215312 View commit details
    Browse the repository at this point in the history
  4. add util.isWebGL2 function

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    a1d8d56 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5264c0d View commit details
    Browse the repository at this point in the history
  6. add VertexArray tab and view

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    12d3712 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    565c57f View commit details
    Browse the repository at this point in the history
  8. Use VertexArrayTab

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    514975b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    56ced7d View commit details
    Browse the repository at this point in the history
  10. remove unused context names

    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    0caf031 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cdaf91e View commit details
    Browse the repository at this point in the history
  12. fix generateMipmap error issue

    AFAIK if you're not uploading any data then there's no reason to call generateMipmap?
    greggman committed Dec 29, 2016
    Configuration menu
    Copy the full SHA
    95f4795 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2016

  1. fix texture formats

    greggman committed Dec 30, 2016
    Configuration menu
    Copy the full SHA
    4239332 View commit details
    Browse the repository at this point in the history
  2. store VAO's element buffer on object because otherwise setExtraParame…

    …ter copies the Buffer object
    greggman committed Dec 30, 2016
    Configuration menu
    Copy the full SHA
    f801022 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ec44980 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    42382c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2017

  1. add a few more constants

    greggman committed Jan 3, 2017
    Configuration menu
    Copy the full SHA
    74765c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3cf789d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a928565 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2017

  1. Use AMD

    This commit switches to AMD for the module system and uses webpack/babel
    to build lib/gli.all.js. This means you can use ES6 code in the source
    and it should be converted to ES5. It also means there's no need to
    add files to both the loaded and the buildscript as webpack can
    figure out the files.
    
    The chrome extension works in both release and debug mode
    and embed.js seems to work in both release and debug mode.
    Also tested firefox in release. Safari I can't test
    as the extension no longer works even without these changes.
    
    A few caveats: Because the debug mode uses require.js
    there *may* be issues with using debug mode on pages
    that use require.js themselves. Non-debug mode should
    not have that issue.
    
    Another issue is in debug mode things are finicky
    in that it's possible window.onload could fire
    before `getContext` has been wrapped. At the moment
    it seems to be working but just in case, for those
    cases you can (debug mode with embed.js only) you
    can wait for `gliready` instead of load. In other words
    assuming you have some code like this
    
        window.onload = runMyApp;
    
    You'd change it to
    
        window.addEventListener('gliready', runMyApp);
    
    Again, only when using embed.js in debug mode.
    greggman committed Jan 8, 2017
    Configuration menu
    Copy the full SHA
    408c57c View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2017

  1. Configuration menu
    Copy the full SHA
    e0aa38f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22ea20c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5cb0685 View commit details
    Browse the repository at this point in the history
  4. remove unused code

    greggman committed Jan 10, 2017
    Configuration menu
    Copy the full SHA
    7a53a17 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    016dcbc View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2017

  1. fix typo

    greggman committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    364c558 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2017

  1. add compression constants

    greggman committed Jan 12, 2017
    Configuration menu
    Copy the full SHA
    d17c4a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b757c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a36996 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3242310 View commit details
    Browse the repository at this point in the history
  5. Add some shader utils

    I started adding these because I thought I was going to need more shaders to render textures.
    It turns out I didn't need to do that but still it seems like a good idea to share some code.
    greggman committed Jan 12, 2017
    Configuration menu
    Copy the full SHA
    d6e7b18 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d292031 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    82a7c86 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a6e8684 View commit details
    Browse the repository at this point in the history
  9. add support for targets TEXTURE_3D and TEXTURE_2D_ARRAY

    note: still to todo is supporting texImage3D etc... for uploading data
    greggman committed Jan 12, 2017
    Configuration menu
    Copy the full SHA
    046d7dc View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2017

  1. Configuration menu
    Copy the full SHA
    468a271 View commit details
    Browse the repository at this point in the history
  2. Track the internal format of textures

    We need this because in WebGL2 samplers are format dependent
    greggman committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    6bf8bc6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e47d74 View commit details
    Browse the repository at this point in the history
  4. use CSS to make images min 32x32 in Texture history.

    This way you can see small images
    greggman committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    f91fff5 View commit details
    Browse the repository at this point in the history
  5. make TexturePreview handle uint and int textures

    Probably some major refactoring need to support 3d and 2d array textures
    greggman committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    f3cd942 View commit details
    Browse the repository at this point in the history
  6. fix firstChild is not a function error

    First off how did this ever work. But secondly why did this suddenly start being an issue. What did I change/break
    
    Also note that if I debug http://twgljs.org/examples/textures.html and pick to browse all textures I see the live updated texture update live in the preview. Really? Is that's suppose to happen?
    greggman committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    3173705 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2017

  1. Configuration menu
    Copy the full SHA
    45bc8a6 View commit details
    Browse the repository at this point in the history
  2. fix typo

    greggman committed Jan 15, 2017
    Configuration menu
    Copy the full SHA
    38d44d3 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2017

  1. add some math libs

    greggman committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    a3aa411 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5000df5 View commit details
    Browse the repository at this point in the history
  3. fix typos

    greggman committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    8a6f1b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dbd83d2 View commit details
    Browse the repository at this point in the history
  5. fix typo

    greggman committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    9ef37aa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6eafa83 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    52f0913 View commit details
    Browse the repository at this point in the history
  8. Handle TEXTURE_3D previews

    greggman committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    7568765 View commit details
    Browse the repository at this point in the history