.. title: CG Class 7, Thu 2019-09-12
.. slug: class07
.. date: 2019-09-12
.. tags: class
.. category: 
.. link: 
.. description: 
.. type: text

.. sectnum::
.. contents:: Table of contents


Iclicker questions
-----------------------

#. If you want your javascript program to send a color for each
      
   vertex to the vertex shader, what type of variable would the
   color be?
   
   A. uniform
   B. varying
   C. attribute
   D. dynamic
   E. static

#. When one neuron in your retina receives a lot of light, that causes the neighboring neuron to
      
   A. be more likely to fire
   B. be less likely to fire
   C. be unaffected by this neuron.

#. In the graphics pipeline, the step after rasterizing is the
      
   A. vertex shader
   B. primitive assembler
   C. fragment shader
   D. tesselation shader
   E. javascript callback

#. The spectral wavelength of pure purple is about
      
   A. 400 nm
   B. 500 nm
   C. 600 nm
   D. 700 nm
   E. There is no wavelength for pure purple.

#. What is your favorite platform/OS?

   A. Windows
   B. Linux
   C. Mac
   D. Android
   E. Other

#.  The carpet is an example of

   A. diffuse reflection
   B. specular reflection
   C. environment mapping
   D. bump mapping
   E. how to save money



Text chapter 3 programs
-----------------------

http://homepages.rpi.edu/~frankwr/ECSE-4750/CODE/03/    (corrected)

triangle, cad1 and cad2 are simple interactive drawing programs.


More slides
-----------

#. `4_1 Input and Interaction <https://wrf.ecse.rpi.edu/Teaching/graphics/SEVENTH_EDITION/PPT/WEEK04/Angel_UNM_14_4_1.ppt>`_

#. `4_2 Animation <https://wrf.ecse.rpi.edu/Teaching/graphics/SEVENTH_EDITION/PPT/WEEK04/Angel_UNM_14_4_2.ppt>`_

