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

Support WebGL 2.0 #12

Open
dronus opened this issue Jan 13, 2018 · 1 comment
Open

Support WebGL 2.0 #12

dronus opened this issue Jan 13, 2018 · 1 comment

Comments

@dronus
Copy link
Owner

dronus commented Jan 13, 2018

WebGL 2.0 compatibility is rising, so we may benefit.

  • One obvious benefit would be it's support for texture arrays or 3D textures, which would enable us to do a spatial controlled timeshifting filter.
  • Using more then one render output buffer can be used internally by some filters for better performance, and may be exposed in the form of multiple output filters, that would push one or more results on the stack.
    -If it is possible to render to compressed textures, those could be used for larger buffers, eg. to raise the delay the timeshift effect can provide. Not clear if it is possible.
    -User ArrayBufferObjects where possible may provide some speed up (eg. like for the mesh_displacement filter)
    -Several extensions are obligatory now, so we could skip checks.
    -Texture size is implicitely available in GLSL, so we get rid of several dx,dy uniforms.

Before implementing, get a sample of currently usable platforms if they are WebGL 2.0 compatible. We won't throw out too many systems again.

@dronus
Copy link
Owner Author

dronus commented Feb 15, 2018

Experimental support in 92920d7 . However as https://caniuse.com/#search=webgl2 states 60% support in the wild (mostly desktop-only), let's wait a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant