In these models we have connected two shader programs to the same model (the piglet). We first render our piglet with the normal shader which we haven't changed from the previous blog posts. We then render it again with the program that includes a geometry shader. In the second image, the geometry shader takes each triangle and moves it out a certain distance in the direction of the normal vector.
Inga kommentarer:
Skicka en kommentar