Hello. Total newbie programmer here, been toying with SDL and glew, and followed some tutorials on how to load some basic vertex and fragment shaders.
Basically, I’m creating a viewport, lets say 500x500, with a quad that fits the viewport. I can do some basic things like changing the quad’s color or moving the vertex points using a uniform. The next thing I want to do is to fill the quad with 10x10 squares alternating between black and white (or any arbitrary color). I would assume that the easiest way would be done in the fragment shader, but I can’t seem to wrap my head around how to do it. Any help would be appreciated.