Dzung Nguyen

Back

Shaders

Posted on Oct 30, 2018

C++
OpenGL
QT Creator


A very fun mid-course project in my introductory computer graphics course. In order to become familiar with how data is passed between the CPU and GPU with OpenGL and the OpenGL graphics pipeline, I wrote a few vertex and fragment shaders to modify the look of 3D models. Vertex shaders allow for manipulation of vertex attributes such as position, normals, etc. On the other hand, fragment shaders determines the look of the vertices. For instance, a vertex shader that makes the image look like it's morphing would be due to vertex shaders. If the colors changes over time, we would look to fragment shader to see what formula was applied to the vertices.

1 / 8
Blinn-Phong.
2 / 8
Bloom
3 / 8
Blur
4 / 8
Black and White (seems like shaders only start with b...)
5 / 8
Gradient (nope that are not)
6 / 8
Matcap
7 / 8
Sobel
8 / 8
Worley