首页 > > 详细

Assignment 3. Lighting and Shading

Assignment 3. Lighting and Shading
Your software implementation of the graphics pipeline can transform and project triangular
models. For the final rendering, however, it still contains no shading. The goal of this assignment
is to extend your previous program to shading implementation.
You should extend your program to shade a triangle model in two separate windows. One of the
windows will show the rendering produced by a straight OpenGL code (the fixed pipeline). The
other window will show an equivalent lighting effect produced by shaders. Your program should
provide at least the following features:
a) Support for at least one light source.
b) Turn light(s) on and off.
c) Implement Phong Illumination Model.
d) Support flat and Gouraud shading models.
e) Support for interactive changes of the (RGBA) values associated with the global
ambient light.
f) Support for interactive changes of the (RGBA) values associated with the ambient,
diffuse and specular component of the light sources.
Evaluation Criteria
1) (6 points) OpenGL part supports:
(2 point) Support for at least one light source
(1 point) Turn light(s) on and off
(1 point) Support flat and Gouraud shading models
(1 point) Support for interactive changes of the (RGBA) values associated with the global
ambient light
(1 point) Support for interactive changes of the (RGBA) values associated with the ambient,
diffuse and specular component of the light sources
2) (10 points) GLSL part supports:
(2 point) Support for at least one light source
(1 point) Turn light(s) on and off
(3 points) Implement Phong Illumination Model
(2 points) Support flat and Gouraud shading rendered using OpenGL commands
(1 point) Support for interactive changes of the (RGBA) values associated with the global
ambient light
(1 point) Support for interactive changes of the (RGBA) values associated with the ambient,
diffuse and specular component of the light sources
3) (1 point) Renderings in both windows are synchronized?

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!