Узнайте Webgl
var vertexShaderSource = document.querySelector("#vertex-shader-2d").text;var fragmentShaderSource = document.querySelector("#fragment-shader-2d").text; var vertexShader = createShader(gl, gl.VERTEX_SHADER, vertexShaderSource);var fragmentShader = createShader(gl, gl.FRAGMENT_SHADER, fragmentShaderSource);
Doubtful Dotterel