"ps2mc-browser" Shader Code Analysis
How do we render the vertices and textures of polygons into a colorful scene? This is where OpenGL shaders come into play. Today, we’ll discuss the shaders of ps2mc-browser. To briefly introduce, ps2mc-browser is a PS2 memory card viewer capable of parsing vertex and texture data from 3D icons within PS2 memory card files and rendering them using OpenGL. In the following content, I’ll dissect the six OpenGL shaders used in ps2mc-browser one by one. Let’s dive into understanding how they work. ...