whs.js
whs.js copied to clipboard
Support for WebGL 2 in RenderingModule
https://github.com/mrdoob/three.js/issues/9965
We need to add WebGL2Renderer
support to RenderingModule
.
Concept
RenderingModule
will detect webgl 2 support. If webgl 2 is supported then THREE.WebGL2Renderer
will be used. If not - it will use THREE.WebGLRenderer
as always.
Implementation
- [ ] Test
THREE.WebGL2Renderer
work in whs usingRenderingModule
. - [ ] Implement a WebGL 2 detector.
- [ ] Use webgl 2 renderer if WebGL2 is supported
WebGL 2 Support
- https://blog.chromium.org/2017/03/faster-3d-rendering-with-webgl-20.html
- https://github.com/WebGLSamples/WebGL2Samples
Version:
- [x] v2.x.x
- [ ] v1.x.x
Issue type:
- [ ] Bug
- [x] Proposal/Enhancement
- [ ] Question
Tested on:
Desktop
- [ ] Chrome
- [ ] Chrome Canary
- [ ] Chrome dev-channel
- [ ] Firefox
- [ ] Opera
- [ ] Microsoft IE
- [ ] Microsoft Edge
Android
- [ ] Chrome
- [ ] Firefox
- [ ] Opera
IOS
- [ ] Chrome
- [ ] Firefox
- [ ] Opera
Probably good to also add some examples using webgl 2 features, like
- [ ] transform feedback
http://www.realtimerendering.com/blog/webgl-2-new-features/