light shows but the cube does not appear
问题 I am trying to use lighting on a cube but I don't understand where am going wrong. I can be able to view the light source but the rest of the screen appears black so I don't understand why the cube is disappearing. Here is the code: /*Header Inclusions*/ #include <iostream> #include <GL/Glew.h> #include <GL/freeglut.h> // GLM Math inclusions #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include<glm/gtc/type_ptr.hpp> using namespace std; // Uses the standard namespace #define