Question
To create a light and turn it on, add the following:.glEnable (GL_DEPTH_TEST)glEnable (GL_LIGHTING)glLight (GL_LIGHT0, GL_POSITION, (5, 5, 5, 1))glEnable (GL_LIGHT0)while not done:.
Step 1
Step 1: Open the OpenGL program or create a new one if you don't have one already. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD