Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 1 of 1

Thread: I want add light and shadow to triangle.

  1. #1
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    1

    I want add light and shadow to triangle.

    I use GLUT to create two triangles. I want to give it dimension. With light and depth to it.
    I try to Google it to find something that will be used to the Code, I have it but they glutSolidSphere, glutSolidTeapot etc.
    Below code. I don't no to modifly below code how have give light and shadow.



    Thank you ...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	opengl_code.jpg 
Views:	11 
Size:	17.2 KB 
ID:	725  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •