change q21, 12, 11, 22 to change light x, y, z. set 3d mode variable to 1 for a demo of a 3d version of this project. set 3d mode variable to 0 for the lighting demo. see https://en.wikipedia.org/wiki/Bilinear_interpolation for more information about this.
This project uses Bilinear Interpolation to shade textures. it also can be used to make cool 3d effects (set 3d mode? to 1). this is currently on test and may be used in the opengl project i made. I may try to test biubic and nearest neighbor to see whats better for my project. #All #Demo #3D #Shading