I am learning the "light.c" example described at http://www.glprogramming.com/red/chapter05.html
After successfully run the example written in C, I modified it to draw a box instead of a sphere. After that, I also translated the C code into Java using LWJGL. However, the Java version doesn't work at all.
Both the C and Java versions are pasted at https://gist.github.com/stfairy/d2aa2f48a9a5801ae72e
The screenshot below is the expected result (which is generated by the C version, but the Java version only gives a black window)