caniuse.com/#search=webgl
WebGL
SVG
Canvas
Triangles
Dots
Lines
Text
Gradients
Shapes
+
DOM API
Vertex
Fragment
JS
(attributes, uniforms)
Vertex shader
(varyings, uniforms)
Fragment shader
(color)
attribute vec3 a_point; attribute vec3 a_color; varying vec3 v_color; void main() { v_color = a_color; gl_Position = vec4(a_point, 1); }
varying vec3 v_color; void main() { gl_FragColor = vec4(v_color, 1); }
Enscape Cube by Thomas Schander
https://www.shadertoy.com/view/4dSBDt
Examples source:
https://github.com/TallinnJS/TallinnJS-WebGL
By Pavel Lavreshin