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

WebGLCanvas doesn't support for WebGL 2 or 3 #3

Open
CZakarya opened this issue Oct 25, 2024 · 0 comments
Open

WebGLCanvas doesn't support for WebGL 2 or 3 #3

CZakarya opened this issue Oct 25, 2024 · 0 comments

Comments

@CZakarya
Copy link

When you request "webgl2" from a canvas (canvas.getContext("webgl2")) it returns a null object. (see line 53 of src/webgl/canvas.ts). ThreeJS no longer supports WebGL 1 as of version r163. As of writing, the latest version is r169. In order to use modern ThreeJS with this project's WebGLCanvas, it needs to support WebGL2. PR #1 seems to add WebGL2 support, so that may be able to be used as a reference or could be merged.

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