M
M
Mellonges2021-09-06 00:12:37
WebGL
Mellonges, 2021-09-06 00:12:37

Is GLSL different in WebGL and OpenGL?

You need to dive into the study of rendering graphics on canvas and webgl. I found a good source for learning GLSL ES, but it's for openGL

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Bogachev, 2021-09-06
@mellonges

There are two versions of WebGL in browsers - these are WebGL 1 and WebGL 2. In the harsh reality, we can round this up to only WebGL 1, because. the second version still does not have adequate browser support, both on mobile devices and on desktops (in Safari this is still an "experimental feature", and in other browsers it seems that only last year they began to fix the accumulated bugs and oddities) . And it turns out that of the really reliable options we have only WebGL 1, where the GLSL language remains version 1.0, while the whole world of OpenGL has already gone to version 4+ (this is already a more recent version than it will be according to plans for us in browsers when there is full support for WebGL 2 everywhere). So I would not talk about the full compatibility of really modern OpenGL and "modern" WebGL.

D
Developer, 2021-09-06
@samodum

GLSL ES is used equally in both OpenGL and WebGL.
Shader codes are compatible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question