What version of GLSL does WebGL use
Asked Answered
B

2

16

Is this a per device sort of thing? Or is it based on the browser? Sorry for such a basic question but I cant seem to find a straight answer.

Brandon answered 11/3, 2015 at 18:6 Comment(1)
possible duplicate of Shaders in WebGL vs openGL?Detonate
T
13

It is based on OpenGL ES 2.0, and according to the spec, it must support GLSL ES version 1.00. In fact that is all it supports.

On another note, this has been my general reference for GLSL features: http://www.shaderific.com/glsl/

Tsaritsyn answered 11/3, 2015 at 21:57 Comment(2)
Another good reference for WebGL is the official Khronos WebGL Cheat Sheet.Lowbred
A great answer by @Lowbred here "Shaders in WebGL vs openGL? "https://mcmap.net/q/750968/-shaders-in-webgl-vs-opengl-closed/3291506Detonate
S
0

The accepted answer is out of date. WebGL currently supports OpenGL ES 2.0 and OpenGL ES 3.0.

Sair answered 23/7, 2024 at 4:33 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Nucleo

© 2022 - 2025 — McMap. All rights reserved.