42 is an integer, not a float. The following assignment produces the error Cannot convert from const int to highp float. float num = 42;
float num = 42.0;
const float PI = radians(180.0);
WebGLRenderingContext and WebGL2RenderingContext interface allow to draw onto a <canvas> HTML element.