Write a commented OpenGL code to assign a brick texture to allsides of a pyramid. The coordinates for 4 sides are as follows:(0,1); (0,5); (1,1); (0,0); (1,0).The coodinates for the bottom of the pryamid are: (0,1);(1,1); (0,0); (1,0).
Solution
Write a commented OpenGL code to assign a brick texture to allsides of a pyramid. The coordinates for 4 sides are as follows:(0,1); (0,5); (1,1); (0,0); (1,0).The coodinates for the bottom of the pryamid are: (0,1);(1,1); (0,0); (1,0).
Solution