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:
  • VERTEXSHADER
  • FRAGMENTSHADER
  • drawArrays
  • POINTS
  • LINKSTATUS
  • VALIDATESTATUS
  • SHADERTYPE
  • DELETESTATUS
  • COMPILESTATUS
  • 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