WebGL - shaders / drawing a point

In this episode, I introduce Vertex and Fragment shaders, WebGL Programs, and show how to draw a point with them.

Concepts / APIs covered:
* VERTEX_SHADER
* FRAGMENT_SHADER
* drawArrays
* POINTS
* LINK_STATUS
* VALIDATE_STATUS
* SHADER_TYPE
* DELETE_STATUS
* COMPILE_STATUS
* createProgram
* attachShader
* linkProgram
* getProgramParameter
* getProgramInfoLog
* deleteProgram
* deleteShader
* isShader
* isProgram
* getAttachedShaders
* getShaderSource
* validateProgram
* getProgramParameter
* getProgramInfoLog
* createShader
* shaderSource
* compileShader
* getShaderParameter
* getShaderInfoLog
* useProgram

Resources:
https://github.com/davidwparker/programmingtil-webgl/tree/master/0004-single-point

© programmingtil.com