Blinn-Phong shading using WebGL

The Blinn-Phong lighting model, a modification to Phong’s lighting model, is a very simple but popular lighting model that was used in the fixed graphic pipelines of OpenGL and DirectX. We’ll revisit the rotating cube program and take a look at how we can add...

Read More

Breakdown of the LookAt function in OpenGL

The LookAt function in OpenGL creates a view matrix that transforms vertices from world space to camera space. It takes three vectors as arguments that together describe the position and orientation of a camera. It’s a simple yet effective function that’s interesting to dissect as...

Read More

Overview of the rendering pipeline in WebGL

WebGL is a javascript API for rendering 2D and 3D graphics within a compatible web browser using the GPU. It’s based on OpenGL ES, which is a low-level graphics API for mobile and embedded devices, and is widely supported in modern browsers. Today we’ll be...

Read More

Different methods for matrix inversion

The inverse of a matrix is an important operation that is applicable only to square matrices. Geometrically the inverse of a matrix is useful because it allows us to compute the reverse of a transformation, i.e. a transformation that undoes another transformation. There are several...

Read More

Hello World!

What better way to start a programming blog than with what’s probably the longest running programming cliché. Yes you read that right, I said programming blog. That means if you came here to find out about some of the incredible insights I had this morning...

Read More