Original Post
Hi, I am new to this forum and am in a course of game programming. I was given an assignment which I wanted to attempt implementing shaders but I have some theory-based problems. Thus far, I know how to compile and link a shader, but otherwise I am still relatively weak. My question is as follows, for example, I have a polygon depicting the ground. There are various effects I wish to implement unto it, but when I have another polygon, I only want part of the effect that was implemented onto the first polygon. How is that achieved? I am under the impression that shaders affect everything in the display when in execution, hence I feel confused about proceeding. Thanks.