For today’s lab we’re going to cover how to draw a set of pixels to the screen, and we’re covering light attenuation and more on openGL materials.
The first thing i’m going to give you is a program so you can test things with Phong shading. As per usual you will need the following:Makefile, Point.cpp, Point.h, Vector3.h, Vector3.cpp, and you will need to add the file Material.cpp
My sites uploading isn’t working correctly, and won’t let me currently upload cpp files. Due to this, the new uploaded files will be needed to change from .txt to .cpp. Also, switch them up in the Makefile, since I’m using an old Makefile. Change Lecture9p2 to being MaterialTutorial.
The next tutorial is using glDrawPixels, and this file is PixelDraw.cpp. It will download as .txt, so you have to change to .cpp.
No Tag
Add A Comment